mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-10 06:46:11 +02:00
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:
parent
b9c1fdb0d8
commit
0f00d06c54
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user