summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-06-27 16:12:19 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-06-29 03:43:57 +0900
commitc519c7d86f015e924e68d23af9d58449fba404d1 (patch)
tree53c9f94b243f091c917e02ca6dee98a92b0b6413
parente943f6106804c120d353c0b64620977d73e8ccc6 (diff)
of1.3: fix OFPMeterStats
len -> length as the latter seems to be expected by OFPMultipartReply.parser_stats_body. 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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py
index e4edc9ed..a2a2cfe2 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -2447,7 +2447,7 @@ class OFPMeterStats(object):
def __init__(self):
super(OFPMeterStats, self).__init__()
self.meter_id = None
- self.len = None
+ self.length = None
self.flow_count = None
self.packet_in_count = None
self.byte_in_count = None
@@ -2459,7 +2459,7 @@ class OFPMeterStats(object):
def parser(cls, buf, offset):
meter_stats = cls()
- (meter_stats.meter_id, meter_stats.len,
+ (meter_stats.meter_id, meter_stats.length,
meter_stats.flow_count, meter_stats.packet_in_count,
meter_stats.byte_in_count, meter_stats.duration_sec,
meter_stats.duration_nsec) = struct.unpack_from(
@@ -2468,7 +2468,7 @@ class OFPMeterStats(object):
meter_stats.band_stats = []
length = ofproto_v1_3.OFP_METER_STATS_SIZE
- while length < meter_stats.len:
+ while length < meter_stats.length:
band_stats = OFPMeterBandStats.parser(buf, offset)
meter_stats.band_stats.append(band_stats)
offset += ofproto_v1_3.OFP_METER_BAND_STATS_SIZE