mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
packet lib: vlan default args
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
f79bcbc3f7
commit
6960bce56a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user