diff options
author | Neale Ranns <nranns@cisco.com> | 2019-01-24 04:52:25 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-01-25 19:54:49 +0000 |
commit | 311124e21b9b8ca11073d82408ffb81d98790969 (patch) | |
tree | 22b615488ec5bf0c9aac73a6716bcdeeccd5d80b /src/vnet | |
parent | 9e47ac54c9fbc6eb7caf0998df50a3114b64ee11 (diff) |
IPSEC: tests use opbject registry
this means we test the dumps - to some extent
Change-Id: I8d90745701012012b41a7b3aaf9be97b4dd2bdf8
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/ipsec/ipsec_cli.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_cli.c b/src/vnet/ipsec/ipsec_cli.c index f0717e91dd1..741df31dfe4 100644 --- a/src/vnet/ipsec/ipsec_cli.c +++ b/src/vnet/ipsec/ipsec_cli.c @@ -460,7 +460,7 @@ show_ipsec_command_fn (vlib_main_t * vm, vnet_hw_interface_t *hi; u8 *protocol = NULL; u8 *policy = NULL; - u32 tx_table_id; + u32 tx_table_id, spd_id, sw_if_index; /* *INDENT-OFF* */ pool_foreach (sa, im->sad, ({ @@ -665,6 +665,16 @@ show_ipsec_command_fn (vlib_main_t * vm, })); /* *INDENT-ON* */ + 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, + format_vnet_sw_if_index_name, im->vnet_main, + sw_if_index); + })); + /* *INDENT-ON* */ + + vlib_cli_output (vm, "tunnel interfaces"); /* *INDENT-OFF* */ pool_foreach (t, im->tunnel_interfaces, ({ |