of13: fix InstructionMeter parser

When using of1.3 meter, NameError is caused while parsing instructions.

Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Atzm Watanabe 2013-10-08 15:48:25 +09:00 committed by FUJITA Tomonori
parent b9c1fdb0d8
commit 0f00d06c54

View File

@ -2526,7 +2526,7 @@ class OFPInstructionMeter(StringifyMixin):
@classmethod
def parser(cls, buf, offset):
(type_, len_, table_id) = struct.unpack_from(
(type_, len_, meter_id) = struct.unpack_from(
ofproto_v1_3.OFP_INSTRUCTION_METER_PACK_STR,
buf, offset)
return cls(meter_id)