MPLS tunnel dump: use sw_if_index not tunnel_index
[vpp.git] / src / vnet / mpls / mpls_tunnel.h
index 285817c..5685a0d 100644 (file)
@@ -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
  */