diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-01-29 07:16:29 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-01-29 07:20:57 +0900 |
commit | 73a11d44737b61cdd05361851ae73c5bd1525df1 (patch) | |
tree | 58c6849894acd96e92b7e2fa2765bad85dc743b2 | |
parent | abeb9b7764de22605e8980321486d0a06e587593 (diff) |
of13: set default ethernet types for MPLS actions
0x8847 (MPLS) for PUSH_MPLS
0x0800 (IP) for POP_MPLS
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 32ea4cc7..7617f3fb 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -2885,7 +2885,7 @@ class OFPActionPushMpls(OFPAction): ethertype Ether type ================ ====================================================== """ - def __init__(self, ethertype, type_=None, len_=None): + def __init__(self, ethertype=ether.ETH_TYPE_MPLS, type_=None, len_=None): super(OFPActionPushMpls, self).__init__() self.ethertype = ethertype @@ -2926,7 +2926,7 @@ class OFPActionPopMpls(OFPAction): This action pops the MPLS header from the packet. """ - def __init__(self, ethertype, type_=None, len_=None): + def __init__(self, ethertype=ether.ETH_TYPE_IP, type_=None, len_=None): super(OFPActionPopMpls, self).__init__() self.ethertype = ethertype |