summaryrefslogtreecommitdiffstats
path: root/src/vnet/mpls/mpls.api
diff options
context:
space:
mode:
authorIJsbrand Wijnands <ice@cisco.com>2020-03-05 10:56:26 -0800
committerNeale Ranns <nranns@cisco.com>2020-03-10 13:47:10 +0000
commit39ae0a07ac17640a7f8ba136eaaf334bfd504030 (patch)
treec6c19f469f2b4d75ac54b890eda6a0dc3610ac30 /src/vnet/mpls/mpls.api
parent287d5e109a93f14490f38bdbe34b6741af436984 (diff)
mpls: add user defined name tag to mpls tunnels
This allows a user creating MPLS tunnel through the bin_api to add a name tag. This is useful to correlate the Tunnel with its use-case. Also useful if the user needs to recover the MPLS Tunnel after a restart (mark-sweep). Type: feature Change-Id: Signed-off-by: IJsbrand Wijnands <ice@cisco.com> Change-Id: Idc080a63810a176ab090a2678a73d2cf9f7b523f
Diffstat (limited to 'src/vnet/mpls/mpls.api')
-rw-r--r--src/vnet/mpls/mpls.api2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/mpls/mpls.api b/src/vnet/mpls/mpls.api
index 920479eff6c..25aa1c645af 100644
--- a/src/vnet/mpls/mpls.api
+++ b/src/vnet/mpls/mpls.api
@@ -46,9 +46,11 @@ typedef mpls_tunnel
u32 mt_tunnel_index;
bool mt_l2_only;
bool mt_is_multicast;
+ string mt_tag[64];
u8 mt_n_paths;
vl_api_fib_path_t mt_paths[mt_n_paths];
};
+
define mpls_tunnel_add_del
{
u32 client_index;