summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-01-29 14:27:17 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-01-29 14:51:56 +0900
commit7ac5282974fac3a6f6f12f0678b8d0aad751776b (patch)
treeaa86932c41b3f1b0b59ae73d688ca3dd361581a9
parent1f590c04110d44775de9c27a4bfed23d990b23d4 (diff)
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>
-rw-r--r--ryu/ofproto/ofproto_v1_4_parser.py4
1 files 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