diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-11-22 11:20:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-12-10 14:57:43 +0900 |
commit | ad5ce12e706193c93c2c8acaafeaa5b1c64f0f17 (patch) | |
tree | 2e56c4ef611b5a2135cac20a0c73c258424a5576 | |
parent | 430424aac0e407748e1241b7a610fff5dace5a99 (diff) |
packet/bgp: Unpack mpls_label in BGPPathAttributePmsiTunnel
The decoded mpls_labe should be return as a tuple of (mpls_labe,
is_bos).
This patch fixes to unpack the returned tuple.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/packet/bgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index bec13b7f..a2b875a7 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3398,7 +3398,7 @@ class BGPPathAttributePmsiTunnel(_PathAttribute): # If binary type label field value is specified, stores it # and decodes as MPLS label and VNI. self._label = label - self._mpls_label = mpls.label_from_bin(label) + self._mpls_label, _ = mpls.label_from_bin(label) self._vni = vxlan.vni_from_bin(label) else: # If either MPLS label or VNI is specified, stores it |