From 311124e21b9b8ca11073d82408ffb81d98790969 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 24 Jan 2019 04:52:25 -0800 Subject: IPSEC: tests use opbject registry this means we test the dumps - to some extent Change-Id: I8d90745701012012b41a7b3aaf9be97b4dd2bdf8 Signed-off-by: Neale Ranns --- src/vnet/ipsec/ipsec_cli.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/vnet') 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, ({ -- cgit 1.2.3-korg