summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-11-20 08:34:58 +0000
committerDamjan Marion <dmarion@me.com>2019-11-20 17:37:39 +0000
commita548d134ae53c52de17fb02c8c925153cbd0fdf5 (patch)
tree7a2e1f0a2faff38f1b41de54c838094ee7f5eb8d
parent0b91bd6c52460c3bff9ae7b1c0405d258a016c32 (diff)
ipsec: Honour the renumber argument when selecting show instnace
Type: fix Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: If41f154c354772f5b32cfd35ea231b8f59c2c0c5
-rw-r--r--src/vnet/ipsec/ipsec_api.c2
1 files changed, 1 insertions, 1 deletions
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);