mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-23 17:42:16 +01:00
of14: Fix OFPInstructionMeter json format
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
7ac5282974
commit
49b84f4d2c
@ -3262,9 +3262,7 @@ class OFPInstructionMeter(StringifyMixin):
|
||||
meter_id Meter instance
|
||||
================ ======================================================
|
||||
"""
|
||||
_base_attributes = ['type', 'len']
|
||||
|
||||
def __init__(self, meter_id):
|
||||
def __init__(self, meter_id, type_=None, len_=None):
|
||||
super(OFPInstructionMeter, self).__init__()
|
||||
self.type = ofproto.OFPIT_METER
|
||||
self.len = ofproto.OFP_INSTRUCTION_METER_SIZE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user