diff options
author | Igor Mikhailov (imichail) <imichail@cisco.com> | 2019-01-11 14:03:53 -0800 |
---|---|---|
committer | steven luong <sluong@cisco.com> | 2019-03-05 19:51:25 +0000 |
commit | 19baa3776230a97e67baabaa45462067937207bf (patch) | |
tree | b9ac81df74e9efd86d8c277c7490956c70cc61a3 /src/vnet | |
parent | 783adb15275e84e591989ec279cfe4c4569a95e6 (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>
(cherry picked from commit 0ac827e15c5ee2134a15bf5e023e03967ddcbaa8)
Diffstat (limited to 'src/vnet')
-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); |