mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-28 20:11:20 +01:00
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>
This commit is contained in:
parent
430424aac0
commit
ad5ce12e70
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user