of13: set default attributes for OFPMultipartRequest subclasses
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
0b8e9885aa
commit
1368fd6899
@ -3549,7 +3549,7 @@ class OFPDescStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPDescStatsRequest(datapath, 0)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, type_=None):
|
||||
def __init__(self, datapath, flags=0, type_=None):
|
||||
super(OFPDescStatsRequest, self).__init__(datapath, flags)
|
||||
|
||||
|
||||
@ -3871,7 +3871,7 @@ class OFPTableStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPTableStatsRequest(datapath, 0)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, type_=None):
|
||||
def __init__(self, datapath, flags=0, type_=None):
|
||||
super(OFPTableStatsRequest, self).__init__(datapath, flags)
|
||||
|
||||
|
||||
@ -3945,7 +3945,8 @@ class OFPPortStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPPortStatsRequest(datapath, 0, ofp.OFPP_ANY)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, port_no, type_=None):
|
||||
def __init__(self, datapath, flags=0, port_no=ofproto_v1_3.OFPP_ANY,
|
||||
type_=None):
|
||||
super(OFPPortStatsRequest, self).__init__(datapath, flags)
|
||||
self.port_no = port_no
|
||||
|
||||
@ -4036,7 +4037,8 @@ class OFPQueueStatsRequest(OFPMultipartRequest):
|
||||
ofp.OFPQ_ALL)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, port_no, queue_id, type_=None):
|
||||
def __init__(self, datapath, flags=0, port_no=ofproto_v1_3.OFPP_ANY,
|
||||
queue_id=ofproto_v1_3.OFPQ_ALL, type_=None):
|
||||
super(OFPQueueStatsRequest, self).__init__(datapath, flags)
|
||||
self.port_no = port_no
|
||||
self.queue_id = queue_id
|
||||
@ -4151,7 +4153,8 @@ class OFPGroupStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPGroupStatsRequest(datapath, 0, ofp.OFPG_ALL)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, group_id, type_=None):
|
||||
def __init__(self, datapath, flags=0, group_id=ofproto_v1_3.OFPG_ALL,
|
||||
type_=None):
|
||||
super(OFPGroupStatsRequest, self).__init__(datapath, flags)
|
||||
self.group_id = group_id
|
||||
|
||||
@ -4246,7 +4249,7 @@ class OFPGroupDescStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPGroupDescStatsRequest(datapath, 0)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, type_=None):
|
||||
def __init__(self, datapath, flags=0, type_=None):
|
||||
super(OFPGroupDescStatsRequest, self).__init__(datapath, flags)
|
||||
|
||||
|
||||
@ -4321,7 +4324,7 @@ class OFPGroupFeaturesStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPGroupFeaturesStatsRequest(datapath, 0)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, type_=None):
|
||||
def __init__(self, datapath, flags=0, type_=None):
|
||||
super(OFPGroupFeaturesStatsRequest, self).__init__(datapath, flags)
|
||||
|
||||
|
||||
@ -4430,7 +4433,8 @@ class OFPMeterStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPMeterStatsRequest(datapath, 0, ofp.OFPM_ALL)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, meter_id, type_=None):
|
||||
def __init__(self, datapath, flags=0, meter_id=ofproto_v1_3.OFPM_ALL,
|
||||
type_=None):
|
||||
super(OFPMeterStatsRequest, self).__init__(datapath, flags)
|
||||
self.meter_id = meter_id
|
||||
|
||||
@ -4632,7 +4636,8 @@ class OFPMeterConfigStatsRequest(OFPMultipartRequest):
|
||||
ofp.OFPM_ALL)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, meter_id, type_=None):
|
||||
def __init__(self, datapath, flags=0, meter_id=ofproto_v1_3.OFPM_ALL,
|
||||
type_=None):
|
||||
super(OFPMeterConfigStatsRequest, self).__init__(datapath, flags)
|
||||
self.meter_id = meter_id
|
||||
|
||||
@ -4710,7 +4715,7 @@ class OFPMeterFeaturesStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPMeterFeaturesStatsRequest(datapath, 0)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, type_=None):
|
||||
def __init__(self, datapath, flags=0, type_=None):
|
||||
super(OFPMeterFeaturesStatsRequest, self).__init__(datapath, flags)
|
||||
|
||||
|
||||
@ -5102,7 +5107,7 @@ class OFPTableFeaturesStatsRequest(OFPMultipartRequest):
|
||||
The default is [].
|
||||
================ ======================================================
|
||||
"""
|
||||
def __init__(self, datapath, flags,
|
||||
def __init__(self, datapath, flags=0,
|
||||
body=[],
|
||||
type_=None):
|
||||
super(OFPTableFeaturesStatsRequest, self).__init__(datapath, flags)
|
||||
@ -5161,7 +5166,7 @@ class OFPPortDescStatsRequest(OFPMultipartRequest):
|
||||
req = ofp_parser.OFPPortDescStatsRequest(datapath, 0)
|
||||
datapath.send_msg(req)
|
||||
"""
|
||||
def __init__(self, datapath, flags, type_=None):
|
||||
def __init__(self, datapath, flags=0, type_=None):
|
||||
super(OFPPortDescStatsRequest, self).__init__(datapath, flags)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user