Fix name of class member variables in OFPMeterFeaturesStats
to reflect OpenFlow Specification version 1.3 and 1.4.

Signed-off-by: IWASE Yusuke <[email protected]>
---
 ryu/ofproto/ofproto_v1_3_parser.py | 6 +++---
 ryu/ofproto/ofproto_v1_4_parser.py | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ryu/ofproto/ofproto_v1_3_parser.py 
b/ryu/ofproto/ofproto_v1_3_parser.py
index 3c33556..b4a1b7c 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -4732,7 +4732,7 @@ class OFPMeterConfigStatsReply(OFPMultipartReply):
 
 class OFPMeterFeaturesStats(ofproto_parser.namedtuple('OFPMeterFeaturesStats',
                             ('max_meter', 'band_types', 'capabilities',
-                             'max_band', 'max_color'))):
+                             'max_bands', 'max_color'))):
     @classmethod
     def parser(cls, buf, offset):
         meter_features = struct.unpack_from(
@@ -4792,10 +4792,10 @@ class OFPMeterFeaturesStatsReply(OFPMultipartReply):
             features = []
             for stat in ev.msg.body:
                 features.append('max_meter=%d band_types=0x%08x '
-                                'capabilities=0x%08x max_band=%d '
+                                'capabilities=0x%08x max_bands=%d '
                                 'max_color=%d' %
                                 (stat.max_meter, stat.band_types,
-                                 stat.capabilities, stat.max_band,
+                                 stat.capabilities, stat.max_bands,
                                  stat.max_color))
             self.logger.debug('MeterFeaturesStats: %s', configs)
     """
diff --git a/ryu/ofproto/ofproto_v1_4_parser.py 
b/ryu/ofproto/ofproto_v1_4_parser.py
index babbcd6..b6432b3 100644
--- a/ryu/ofproto/ofproto_v1_4_parser.py
+++ b/ryu/ofproto/ofproto_v1_4_parser.py
@@ -3347,7 +3347,7 @@ class OFPMeterConfigStatsReply(OFPMultipartReply):
 
 class OFPMeterFeaturesStats(ofproto_parser.namedtuple('OFPMeterFeaturesStats',
                             ('max_meter', 'band_types', 'capabilities',
-                             'max_band', 'max_color'))):
+                             'max_bands', 'max_color'))):
     @classmethod
     def parser(cls, buf, offset):
         meter_features = struct.unpack_from(
@@ -3407,10 +3407,10 @@ class OFPMeterFeaturesStatsReply(OFPMultipartReply):
             features = []
             for stat in ev.msg.body:
                 features.append('max_meter=%d band_types=0x%08x '
-                                'capabilities=0x%08x max_band=%d '
+                                'capabilities=0x%08x max_bands=%d '
                                 'max_color=%d' %
                                 (stat.max_meter, stat.band_types,
-                                 stat.capabilities, stat.max_band,
+                                 stat.capabilities, stat.max_bands,
                                  stat.max_color))
             self.logger.debug('MeterFeaturesStats: %s', configs)
     """
-- 
1.9.1


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to