summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-11-22 16:33:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-11-23 11:38:04 +0900
commit183b62463851e8c6c4aa10034c6333a8875974f6 (patch)
tree404311d0bc815463e7758ea4fabc087961e1c6fc
parent180cbe7609e116abc3ad2549b9e2928251ed022d (diff)
of1.3: fix OFPMP_AGGREGATE
File "/Users/fujita/git/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 898, in <module> @_set_stats_type(ofproto_v1_3.OFPST_AGGREGATE, OFPAggregateStats) AttributeError: 'module' object has no attribute 'OFPST_AGGREGATE' Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_3_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py
index 420ee284..74956de6 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -895,7 +895,7 @@ class OFPAggregateStats(collections.namedtuple('OFPAggregateStats', (
return stats
-@_set_stats_type(ofproto_v1_3.OFPST_AGGREGATE, OFPAggregateStats)
+@_set_stats_type(ofproto_v1_3.OFPMP_AGGREGATE, OFPAggregateStats)
@_set_msg_type(ofproto_v1_3.OFPT_MULTIPART_REQUEST)
class OFPAggregateStatsRequest(OFPFlowStatsRequestBase):
def __init__(self, datapath, flags, table_id, out_port, out_group,
@@ -908,7 +908,7 @@ class OFPAggregateStatsRequest(OFPFlowStatsRequestBase):
cookie_mask)
-@OFPmultipartReply.register_stats_type()
+@OFPMultipartReply.register_stats_type()
@_set_stats_type(ofproto_v1_3.OFPMP_AGGREGATE, OFPAggregateStats)
@_set_msg_type(ofproto_v1_3.OFPT_MULTIPART_REPLY)
class OFPAggregateStatsReply(OFPMultipartReply):