aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dpo/dvr_dpo.c
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@yandex-team.ru>2022-08-04 20:36:45 +0500
committerDamjan Marion <dmarion@0xa5.net>2024-03-05 18:48:28 +0000
commitfb9d1ac843884aca79873577b53f6254e7933478 (patch)
tree7848ba7c81826ceafd886cfbbfd76fa9c1bcf562 /src/vnet/dpo/dvr_dpo.c
parent7ad751ba53a792cc6beaade1eb61d0bd9dc87ea5 (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/dpo/dvr_dpo.c')
-rw-r--r--src/vnet/dpo/dvr_dpo.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/vnet/dpo/dvr_dpo.c b/src/vnet/dpo/dvr_dpo.c
index 5db9c803145..2b66467837c 100644
--- a/src/vnet/dpo/dvr_dpo.c
+++ b/src/vnet/dpo/dvr_dpo.c
@@ -206,12 +206,9 @@ format_dvr_dpo (u8* s, va_list *ap)
vnet_main_t * vnm = vnet_get_main();
dvr_dpo_t *dd = dvr_dpo_get(index);
- return (format(s, "%U-dvr-%U-dpo %U",
- format_dpo_proto, dd->dd_proto,
- format_vnet_sw_interface_name,
- vnm,
- vnet_get_sw_interface(vnm, dd->dd_sw_if_index),
- format_dvr_reinject, dd->dd_reinject));
+ return format (s, "%U-dvr-%U-dpo %U", format_dpo_proto, dd->dd_proto,
+ format_vnet_sw_if_index_name, vnm, dd->dd_sw_if_index,
+ format_dvr_reinject, dd->dd_reinject);
}
static void