diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-06-10 08:30:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-06-10 07:58:01 -0700 |
commit | 6960bce56af32ea9bfd95d477c6c936d889ae210 (patch) | |
tree | 2b0d902dc2b5bb74eea3b2a1e2eb6dbe49a80f8f | |
parent | f79bcbc3f76f4a8a2f3c3319126c6aefaf25c89e (diff) |
packet lib: vlan default args
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/packet/vlan.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/packet/vlan.py b/ryu/lib/packet/vlan.py index 9a42403f..f48de0ef 100644 --- a/ryu/lib/packet/vlan.py +++ b/ryu/lib/packet/vlan.py @@ -43,7 +43,7 @@ class vlan(packet_base.PacketBase): _PACK_STR = "!HH" _MIN_LEN = struct.calcsize(_PACK_STR) - def __init__(self, pcp, cfi, vid, ethertype): + def __init__(self, pcp=0, cfi=0, vid=0, ethertype=ether.ETH_TYPE_IP): super(vlan, self).__init__() self.pcp = pcp self.cfi = cfi |