mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
ofproto_v1_[345]: Fix backward compatibility for OFPGroupDescStats
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:
parent
6fe9321485
commit
09cef6dc1d
@ -653,9 +653,14 @@ OFP_BUCKET_COUNTER_PACK_STR = '!QQ'
|
||||
OFP_BUCKET_COUNTER_SIZE = 16
|
||||
assert calcsize(OFP_BUCKET_COUNTER_PACK_STR) == OFP_BUCKET_COUNTER_SIZE
|
||||
|
||||
# struct ofp_group_desc
|
||||
OFP_GROUP_DESC_PACK_STR = '!HBxI'
|
||||
OFP_GROUP_DESC_SIZE = 8
|
||||
assert calcsize(OFP_GROUP_DESC_PACK_STR) == OFP_GROUP_DESC_SIZE
|
||||
|
||||
# struct ofp_group_desc_stats
|
||||
OFP_GROUP_DESC_STATS_PACK_STR = '!HBxI'
|
||||
OFP_GROUP_DESC_STATS_SIZE = 8
|
||||
OFP_GROUP_DESC_STATS_PACK_STR = OFP_GROUP_DESC_PACK_STR
|
||||
OFP_GROUP_DESC_STATS_SIZE = OFP_GROUP_DESC_SIZE
|
||||
assert calcsize(OFP_GROUP_DESC_STATS_PACK_STR) == OFP_GROUP_DESC_STATS_SIZE
|
||||
|
||||
# struct ofp_group_features
|
||||
|
||||
@ -1154,11 +1154,6 @@ OFP_BUCKET_COUNTER_PACK_STR = '!QQ'
|
||||
OFP_BUCKET_COUNTER_SIZE = 16
|
||||
assert calcsize(OFP_BUCKET_COUNTER_PACK_STR) == OFP_BUCKET_COUNTER_SIZE
|
||||
|
||||
# struct ofp_group_desc_stats
|
||||
OFP_GROUP_DESC_STATS_PACK_STR = '!HBxI'
|
||||
OFP_GROUP_DESC_STATS_SIZE = 8
|
||||
assert calcsize(OFP_GROUP_DESC_STATS_PACK_STR) == OFP_GROUP_DESC_STATS_SIZE
|
||||
|
||||
# struct ofp_group_stats
|
||||
OFP_GROUP_STATS_PACK_STR = '!H2xII4xQQII'
|
||||
OFP_GROUP_STATS_SIZE = 40
|
||||
@ -1169,6 +1164,12 @@ OFP_GROUP_DESC_PACK_STR = '!HBxI'
|
||||
OFP_GROUP_DESC_SIZE = 8
|
||||
assert calcsize(OFP_GROUP_DESC_PACK_STR) == OFP_GROUP_DESC_SIZE
|
||||
|
||||
# struct ofp_group_desc_stats
|
||||
# Backward compatibility with 1.3.1 - avoid breaking the API.
|
||||
OFP_GROUP_DESC_STATS_PACK_STR = OFP_GROUP_DESC_PACK_STR
|
||||
OFP_GROUP_DESC_STATS_SIZE = OFP_GROUP_DESC_SIZE
|
||||
assert calcsize(OFP_GROUP_DESC_STATS_PACK_STR) == OFP_GROUP_DESC_STATS_SIZE
|
||||
|
||||
# enum ofp_group_capabilities
|
||||
OFPGFC_SELECT_WEIGHT = 1 << 0 # Support weight for select groups.
|
||||
OFPGFC_SELECT_LIVENESS = 1 << 1 # Support liveness for select groups.
|
||||
|
||||
@ -1375,11 +1375,6 @@ OFP_BUCKET_COUNTER_PACK_STR = '!QQ'
|
||||
OFP_BUCKET_COUNTER_SIZE = 16
|
||||
assert calcsize(OFP_BUCKET_COUNTER_PACK_STR) == OFP_BUCKET_COUNTER_SIZE
|
||||
|
||||
# struct ofp_group_desc_stats
|
||||
OFP_GROUP_DESC_STATS_PACK_STR = '!HBxI'
|
||||
OFP_GROUP_DESC_STATS_SIZE = 8
|
||||
assert calcsize(OFP_GROUP_DESC_STATS_PACK_STR) == OFP_GROUP_DESC_STATS_SIZE
|
||||
|
||||
# struct ofp_group_stats
|
||||
OFP_GROUP_STATS_PACK_STR = '!H2xII4xQQII'
|
||||
OFP_GROUP_STATS_SIZE = 40
|
||||
@ -1390,6 +1385,12 @@ OFP_GROUP_DESC_PACK_STR = '!HBxIH6x'
|
||||
OFP_GROUP_DESC_SIZE = 16
|
||||
assert calcsize(OFP_GROUP_DESC_PACK_STR) == OFP_GROUP_DESC_SIZE
|
||||
|
||||
# struct ofp_group_desc_stats
|
||||
# Backward compatibility with 1.3.1 - avoid breaking the API.
|
||||
OFP_GROUP_DESC_STATS_PACK_STR = OFP_GROUP_DESC_PACK_STR
|
||||
OFP_GROUP_DESC_STATS_SIZE = OFP_GROUP_DESC_SIZE
|
||||
assert calcsize(OFP_GROUP_DESC_STATS_PACK_STR) == OFP_GROUP_DESC_STATS_SIZE
|
||||
|
||||
# enum ofp_group_capabilities
|
||||
OFPGFC_SELECT_WEIGHT = 1 << 0 # Support weight for select groups.
|
||||
OFPGFC_SELECT_LIVENESS = 1 << 1 # Support liveness for select groups.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user