aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_mpls_tunnel_interface.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-08-30 06:12:27 -0700
committerNeale Ranns <nranns@cisco.com>2018-08-31 09:03:07 +0000
commit2da975c4dde45b1421998e54c107cb24d01d10d9 (patch)
tree2b26f835004209c611a846223d341a78d053a0e8 /test/vpp_mpls_tunnel_interface.py
parentfe47e29fc6ddcb664f76f4ebbfd2593cb0282e43 (diff)
SR-MPLS: fixes and tests
- the FIB path takes a vector of type fib_mpls_label_t not u32 so the untype safe vec_add did not work - write som eSR-MPLS tests - allow an MPLS tunnel to resolve through a SR BSID Change-Id: I2a18b9a9bf43584100ac269c4ebc286c9e3b3ea5 Signed-off-by: Neale Ranns <nranns@cisco.com> (cherry picked from commit 7c922dc404c2c0a2d67d53ca05db1c1ae1598f44)
Diffstat (limited to 'test/vpp_mpls_tunnel_interface.py')
-rw-r--r--test/vpp_mpls_tunnel_interface.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/vpp_mpls_tunnel_interface.py b/test/vpp_mpls_tunnel_interface.py
index 995ffb7dd54..b125f3c7277 100644
--- a/test/vpp_mpls_tunnel_interface.py
+++ b/test/vpp_mpls_tunnel_interface.py
@@ -26,6 +26,7 @@ class VppMPLSTunnelInterface(VppInterface):
path.nh_itf,
path.nh_table_id,
path.weight,
+ next_hop_via_label=path.nh_via_label,
next_hop_out_label_stack=lstack,
next_hop_n_out_labels=len(lstack),
is_multicast=self.is_multicast,
@@ -42,6 +43,7 @@ class VppMPLSTunnelInterface(VppInterface):
path.nh_itf,
path.nh_table_id,
path.weight,
+ next_hop_via_label=path.nh_via_label,
next_hop_out_label_stack=path.nh_labels,
next_hop_n_out_labels=len(path.nh_labels),
is_add=0)