diff options
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 3a413008..f592e799 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -21,6 +21,7 @@ from ryu.lib import addrconv from ryu.lib import mac from ryu import utils from ofproto_parser import StringifyMixin, MsgBase, msg_pack_into, msg_str_attr +from . import ether from . import ofproto_parser from . import ofproto_v1_2 @@ -1350,10 +1351,10 @@ class OFPActionPushVlan(OFPAction): ================ ====================================================== Attribute Description ================ ====================================================== - ethertype Ether type + ethertype Ether type. The default is 802.1Q. (0x8100) ================ ====================================================== """ - def __init__(self, ethertype, type_=None, len_=None): + def __init__(self, ethertype=ether.ETH_TYPE_8021Q, type_=None, len_=None): super(OFPActionPushVlan, self).__init__() self.ethertype = ethertype |