summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMinoru TAKAHASHI <takahashi.minoru7@gmail.com>2015-07-30 13:42:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-31 08:31:41 +0900
commit70021b25d77366f886576983300dd0d11522b7e9 (patch)
treea5b0d5b425a57c7a8ada29ac67f72cfcb9571053
parentb7b8e2fca3afafd51dc0995befc72bf04c70a19c (diff)
of1.5: Meter statistics field flow_count was renamed to ref_count
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_5_parser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py
index d8307d7c..01b0a0ab 100644
--- a/ryu/ofproto/ofproto_v1_5_parser.py
+++ b/ryu/ofproto/ofproto_v1_5_parser.py
@@ -3339,13 +3339,13 @@ class OFPMeterBandStats(StringifyMixin):
class OFPMeterStats(StringifyMixin):
- def __init__(self, meter_id=None, flow_count=None, packet_in_count=None,
+ def __init__(self, meter_id=None, ref_count=None, packet_in_count=None,
byte_in_count=None, duration_sec=None, duration_nsec=None,
band_stats=None, len_=None):
super(OFPMeterStats, self).__init__()
self.meter_id = meter_id
self.len = 0
- self.flow_count = flow_count
+ self.ref_count = ref_count
self.packet_in_count = packet_in_count
self.byte_in_count = byte_in_count
self.duration_sec = duration_sec
@@ -3357,7 +3357,7 @@ class OFPMeterStats(StringifyMixin):
meter_stats = cls()
(meter_stats.meter_id, meter_stats.len,
- meter_stats.flow_count, meter_stats.packet_in_count,
+ meter_stats.ref_count, meter_stats.packet_in_count,
meter_stats.byte_in_count, meter_stats.duration_sec,
meter_stats.duration_nsec) = struct.unpack_from(
ofproto.OFP_METER_STATS_PACK_STR, buf, offset)
@@ -3432,11 +3432,11 @@ class OFPMeterStatsReply(OFPMultipartReply):
def meter_stats_reply_handler(self, ev):
meters = []
for stat in ev.msg.body:
- meters.append('meter_id=0x%08x len=%d flow_count=%d '
+ meters.append('meter_id=0x%08x len=%d ref_count=%d '
'packet_in_count=%d byte_in_count=%d '
'duration_sec=%d duration_nsec=%d '
'band_stats=%s' %
- (stat.meter_id, stat.len, stat.flow_count,
+ (stat.meter_id, stat.len, stat.ref_count,
stat.packet_in_count, stat.byte_in_count,
stat.duration_sec, stat.duration_nsec,
stat.band_stats))