diff options
author | Vladislav Grishenko <themiron@yandex-team.ru> | 2022-08-04 20:36:45 +0500 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-03-05 18:48:28 +0000 |
commit | fb9d1ac843884aca79873577b53f6254e7933478 (patch) | |
tree | 7848ba7c81826ceafd886cfbbfd76fa9c1bcf562 /src/vnet/l2/l2_fib.c | |
parent | 7ad751ba53a792cc6beaade1eb61d0bd9dc87ea5 (diff) |
vnet: fix format of deleted sw interfaces
As similar 535364e90459566b603661c3dbe360c72f59ad71 is
merged, printing possibly deleted interfaces by index
only in all the rest cases.
Type: improvement
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: I4fa58b382c0279ff893523ba0188fdb9b09e10af
Diffstat (limited to 'src/vnet/l2/l2_fib.c')
-rw-r--r-- | src/vnet/l2/l2_fib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/l2/l2_fib.c b/src/vnet/l2/l2_fib.c index ad301af78f4..efcc640d5ea 100644 --- a/src/vnet/l2/l2_fib.c +++ b/src/vnet/l2/l2_fib.c @@ -95,8 +95,7 @@ format_vnet_sw_if_index_name_with_NA (u8 * s, va_list * args) if (!swif) return format (s, "Stale"); - return format (s, "%U", format_vnet_sw_interface_name, vnm, - vnet_get_sw_interface_or_null (vnm, sw_if_index)); + return format (s, "%U", format_vnet_sw_if_index_name, vnm, sw_if_index); } typedef struct l2fib_dump_walk_ctx_t_ |