diff options
author | Neale Ranns <nranns@cisco.com> | 2019-06-14 06:48:27 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-06-14 19:33:16 +0000 |
commit | d83c4a8d70cfd9dc8c5af3d7391d2ea6a67aa480 (patch) | |
tree | 1c5d3637ae6cda2418eb36c26d8820dbcaed359c /src | |
parent | 72280f817a0dd8baa9711ef67ec8b795547a6f6d (diff) |
ipsec: Display user specified SPI ID not VPP's index
Type: fix
Fixes: 8d7c502002
Change-Id: Ia6de250f20200c17937d9d7b2aab17ccd81d7823
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ipsec/ipsec_cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_cli.c b/src/vnet/ipsec/ipsec_cli.c index 312289ae7d8..4172e104a98 100644 --- a/src/vnet/ipsec/ipsec_cli.c +++ b/src/vnet/ipsec/ipsec_cli.c @@ -374,12 +374,14 @@ static void ipsec_spd_bindings_show_all (vlib_main_t * vm, ipsec_main_t * im) { u32 spd_id, sw_if_index; + ipsec_spd_t *spd; vlib_cli_output (vm, "SPD Bindings:"); /* *INDENT-OFF* */ hash_foreach(sw_if_index, spd_id, im->spd_index_by_sw_if_index, ({ - vlib_cli_output (vm, " %d -> %U", spd_id, + spd = pool_elt_at_index (im->spds, spd_id); + vlib_cli_output (vm, " %d -> %U", spd->id, format_vnet_sw_if_index_name, im->vnet_main, sw_if_index); })); |