From 7ac5282974fac3a6f6f12f0678b8d0aad751776b Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 29 Jan 2014 14:27:17 +0900 Subject: [PATCH] of14: default ethernet type for PUSH_VLAN action 0x8100 in most cases. Signed-off-by: FUJITA Tomonori Reviewed-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index 38ae25a2..4ecfd0db 100644 --- a/ryu/ofproto/ofproto_v1_4_parser.py +++ b/ryu/ofproto/ofproto_v1_4_parser.py @@ -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