diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 61618a88..e95c2b35 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -2104,16 +2104,6 @@ class MTVlanVid(OFPMatchField): self.value = value self.mask = mask - @classmethod - def field_parser(cls, header, buf, offset): - m = super(MTVlanVid, cls).field_parser(header, buf, offset) - m.value &= ~ofproto_v1_2.OFPVID_PRESENT - return m - - def serialize(self, buf, offset): - self.value |= ofproto_v1_2.OFPVID_PRESENT - super(MTVlanVid, self).serialize(buf, offset) - @OFPMatchField.register_field_header([ofproto_v1_2.OXM_OF_VLAN_PCP]) class MTVlanPcp(OFPMatchField):