of1.2: fix vlan_vid match
Fix the following error: File "/Users/fujita/git/ryu/ryu/ofproto/ofproto_v1_2_parser.py", line 1501, in serialize self.append_field(header, self.flow.vlan_vid, self.vlan_vid_mask) AttributeError: 'OFPMatch' object has no attribute 'vlan_vid_mask' Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
b15a6649f3
commit
e97dd714ea
@ -1498,7 +1498,8 @@ class OFPMatch(object):
|
||||
header = ofproto_v1_2.OXM_OF_VLAN_VID
|
||||
else:
|
||||
header = ofproto_v1_2.OXM_OF_VLAN_VID_W
|
||||
self.append_field(header, self.flow.vlan_vid, self.vlan_vid_mask)
|
||||
self.append_field(header, self.flow.vlan_vid,
|
||||
self.wc.vlan_vid_mask)
|
||||
|
||||
if self.wc.ft_test(ofproto_v1_2.OFPXMT_OFB_VLAN_PCP):
|
||||
self.append_field(ofproto_v1_2.OXM_OF_VLAN_PCP, self.flow.vlan_pcp)
|
||||
|
Loading…
Reference in New Issue
Block a user