diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 083f7ea6..d0d3120f 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -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)