diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-09-26 05:07:25 -0700 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2018-09-26 16:54:46 +0000 |
commit | f5fa5ae2b021f946fbb8ec56e692459cd34bc7fb (patch) | |
tree | c5ba2b4602d39d8a7b366706b5535c1c6ac01f81 /src/vnet/mpls/mpls_tunnel.h | |
parent | 2ac7edeeaf01dc21d9b87e764b6147c035a87c58 (diff) |
MPLS tunnel dump: use sw_if_index not tunnel_index
Change-Id: I6c0d5aec6ee96a0d40358f0e09a0901b22265063
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/mpls/mpls_tunnel.h')
-rw-r--r-- | src/vnet/mpls/mpls_tunnel.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -117,6 +117,11 @@ 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 */ extern void vnet_mpls_tunnel_del (u32 sw_if_index); |