diff options
author | Igor Mikhailov (imichail) <imichail@cisco.com> | 2019-01-11 14:03:53 -0800 |
---|---|---|
committer | Igor Mikhailov (imichail) <imichail@cisco.com> | 2019-01-11 14:03:53 -0800 |
commit | 0ac827e15c5ee2134a15bf5e023e03967ddcbaa8 (patch) | |
tree | ad7518c3da8ac108235bf70fb96b2f4dd5cbe7a9 | |
parent | 46e8e91bcad6fa3e8cefa8767954576c3075ef22 (diff) |
Fix 'show interface span' field length
Allow to display longer interface names, e.g. VirtualEthernet0/0/0.102
The field length (32) is now the same as for 'show interface'.
Change-Id: I1cb1efd459acb800bfaeeec40b672c8b17cd8c3d
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
-rw-r--r-- | src/vnet/span/span.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/span/span.c b/src/vnet/span/span.c index b7292cf1e80..fc923e0ce31 100644 --- a/src/vnet/span/span.c +++ b/src/vnet/span/span.c @@ -206,7 +206,7 @@ show_interfaces_span_command_fn (vlib_main_t * vm, clib_bitmap_t *b = clib_bitmap_dup_or (d, l); if (header) { - vlib_cli_output (vm, "%-20s %-20s %6s %6s", "Source", "Destination", + vlib_cli_output (vm, "%-32s %-32s %6s %6s", "Source", "Destination", "Device", "L2"); header = 0; } @@ -219,7 +219,7 @@ show_interfaces_span_command_fn (vlib_main_t * vm, int l2 = (clib_bitmap_get (lrxm->mirror_ports, i) + clib_bitmap_get (ltxm->mirror_ports, i) * 2); - vlib_cli_output (vm, "%-20v %-20U (%6s) (%6s)", s, + vlib_cli_output (vm, "%-32v %-32U (%6s) (%6s)", s, format_vnet_sw_if_index_name, vnm, i, states[device], states[l2]); vec_reset_length (s); |