of14: default ethernet type for PUSH_VLAN action

0x8100 in most cases.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
FUJITA Tomonori 2014-01-29 14:27:17 +09:00
parent 1f590c0411
commit 7ac5282974

View File

@ -3552,10 +3552,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