diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-07-19 15:32:09 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-07-19 18:14:56 +0900 |
commit | 3fc9c426911abbf56d2a2001017def155ec1cb2e (patch) | |
tree | 0167f6966b05d84889a92bcf478ae52ce85faf0a | |
parent | 4737da4331560ddbb81b40198daf8659582d4301 (diff) |
of-wire json: adapt OF13 OFPTableFeaturesStatsReply
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index aced858b..4c00fd65 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -2802,21 +2802,23 @@ class OFPMeterFeaturesStatsReply(OFPMultipartReply): class OFPTableFeaturesStats(StringifyMixin): - def __init__(self): + def __init__(self, table_id=None, name=None, metadata_match=None, + metadata_write=None, config=None, max_entries=None, + properties=None): super(OFPTableFeaturesStats, self).__init__() - self.length = None - self.table_id = None - self.name = None - self.metadata_match = None - self.metadata_write = None - self.config = None - self.max_entries = None - self.properties = None + self._length = None + self.table_id = table_id + self.name = name + self.metadata_match = metadata_match + self.metadata_write = metadata_write + self.config = config + self.max_entries = max_entries + self.properties = properties @classmethod def parser(cls, buf, offset): table_features = cls() - (table_features.length, table_features.table_id, + (table_features._length, table_features.table_id, table_features.name, table_features.metadata_match, table_features.metadata_write, table_features.config, table_features.max_entries @@ -2854,8 +2856,8 @@ class OFPTableFeaturesStatsRequest(OFPMultipartRequest): @_set_stats_type(ofproto_v1_3.OFPMP_TABLE_FEATURES, OFPTableFeaturesStats) @_set_msg_type(ofproto_v1_3.OFPT_MULTIPART_REPLY) class OFPTableFeaturesStatsReply(OFPMultipartReply): - def __init__(self, datapath): - super(OFPTableFeaturesStatsReply, self).__init__(datapath) + def __init__(self, datapath, **kwargs): + super(OFPTableFeaturesStatsReply, self).__init__(datapath, **kwargs) @_set_stats_type(ofproto_v1_3.OFPMP_PORT_DESC, OFPPort) |