ofproto_v1_5_parser: Add missing field in OFPMeterFeaturesStats

"features" field is introduced in OpenFlow 1.5, but this field is
not defined in ofproto_v1_5_parser.py.

This patch adds this missing field.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWASE Yusuke 2016-02-10 13:58:09 +09:00 committed by FUJITA Tomonori
parent a1fd26f89a
commit 5cb8f8ccc7
2 changed files with 2 additions and 1 deletions

View File

@ -3309,7 +3309,7 @@ class OFPMeterDescStatsReply(OFPMultipartReply):
class OFPMeterFeaturesStats(ofproto_parser.namedtuple('OFPMeterFeaturesStats',
('max_meter', 'band_types', 'capabilities',
'max_bands', 'max_color'))):
'max_bands', 'max_color', 'features'))):
@classmethod
def parser(cls, buf, offset):
meter_features = struct.unpack_from(

View File

@ -5,6 +5,7 @@
"OFPMeterFeaturesStats": {
"band_types": 2147483654,
"capabilities": 15,
"features": 3,
"max_bands": 255,
"max_color": 0,
"max_meter": 16777216