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:
FUJITA Tomonori 2014-01-29 14:29:14 +09:00
parent 7ac5282974
commit 49b84f4d2c

View File

@ -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