From: Neale Ranns Date: Wed, 20 Nov 2019 08:34:58 +0000 (+0000) Subject: ipsec: Honour the renumber argument when selecting show instnace X-Git-Tag: v20.05-rc0~343 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=a548d134ae53c52de17fb02c8c925153cbd0fdf5 ipsec: Honour the renumber argument when selecting show instnace Type: fix Signed-off-by: Neale Ranns Change-Id: If41f154c354772f5b32cfd35ea231b8f59c2c0c5 --- diff --git a/src/vnet/ipsec/ipsec_api.c b/src/vnet/ipsec/ipsec_api.c index a959ac643ec..6784f0b08f9 100644 --- a/src/vnet/ipsec/ipsec_api.c +++ b/src/vnet/ipsec/ipsec_api.c @@ -789,7 +789,7 @@ vl_api_ipsec_tunnel_if_add_del_t_handler (vl_api_ipsec_tunnel_if_add_del_t * // remote = input, local = output /* create an ip-ip tunnel, then the two SA, then bind them */ rv = ipip_add_tunnel (transport, - ntohl (mp->show_instance), + (mp->renumber ? ntohl (mp->show_instance) : ~0), &local_ip, &remote_ip, fib_index, 0, &sw_if_index);