diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-06-10 08:30:51 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-06-10 07:58:01 -0700 |
commit | f79bcbc3f76f4a8a2f3c3319126c6aefaf25c89e (patch) | |
tree | b163a316828af2feecc931e8ac69ba9ccbc7e37f | |
parent | bd8d3a2fa0fbd2372d927a3bd771a6eae80d36e8 (diff) |
packet lib: mpls default args
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/packet/mpls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/packet/mpls.py b/ryu/lib/packet/mpls.py index 3c0ae4f9..55d5b3e2 100644 --- a/ryu/lib/packet/mpls.py +++ b/ryu/lib/packet/mpls.py @@ -44,7 +44,7 @@ class mpls(packet_base.PacketBase): _PACK_STR = '!I' _MIN_LEN = struct.calcsize(_PACK_STR) - def __init__(self, label, exp, bsb, ttl): + def __init__(self, label=0, exp=0, bsb=1, ttl=255): super(mpls, self).__init__() self.label = label self.exp = exp |