From f5fa5ae2b021f946fbb8ec56e692459cd34bc7fb Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 26 Sep 2018 05:07:25 -0700 Subject: MPLS tunnel dump: use sw_if_index not tunnel_index Change-Id: I6c0d5aec6ee96a0d40358f0e09a0901b22265063 Signed-off-by: Neale Ranns --- src/vnet/mpls/mpls_tunnel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vnet/mpls/mpls_tunnel.h') diff --git a/src/vnet/mpls/mpls_tunnel.h b/src/vnet/mpls/mpls_tunnel.h index 285817c33c4..5685a0d8d6c 100644 --- a/src/vnet/mpls/mpls_tunnel.h +++ b/src/vnet/mpls/mpls_tunnel.h @@ -116,6 +116,11 @@ extern void vnet_mpls_tunnel_path_add (u32 sw_if_index, extern int vnet_mpls_tunnel_path_remove (u32 sw_if_index, fib_route_path_t *rpath); +/** + * @vrief return the tunnel index from the sw_if_index + */ +extern int vnet_mpls_tunnel_get_index (u32 sw_if_index); + /** * @brief Delete an MPLS tunnel */ -- cgit 1.2.3-korg