mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
of1.3: fix attribute name of OFPGroupDescStats
accord with OF1.3.0/1.3.1 spec. Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
0f83d74065
commit
bc78776f40
@ -2331,7 +2331,7 @@ class OFPGroupDescStats(object):
|
||||
self.length = None
|
||||
self.type = None
|
||||
self.group_id = None
|
||||
self.ofp_bucket = None
|
||||
self.buckets = None
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
@ -2341,11 +2341,11 @@ class OFPGroupDescStats(object):
|
||||
ofproto_v1_3.OFP_GROUP_DESC_STATS_PACK_STR, buf, offset)
|
||||
offset += ofproto_v1_3.OFP_GROUP_DESC_STATS_SIZE
|
||||
|
||||
stats.bucket = []
|
||||
stats.buckets = []
|
||||
length = ofproto_v1_3.OFP_GROUP_DESC_STATS_SIZE
|
||||
while length < stats.length:
|
||||
bucket = OFPBucket.parser(buf, offset)
|
||||
stats.bucket.append(bucket)
|
||||
stats.buckets.append(bucket)
|
||||
|
||||
offset += bucket.len
|
||||
length += bucket.len
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user