From f0e67d78ae23ff3d5751ea10e9e76cb6e81ba4a5 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Fri, 23 Jul 2021 22:03:05 +0000 Subject: interface: add api test file Type: improvement Signed-off-by: Filip Tehlar Change-Id: Ib07029204ecf12bf2adb5a39afa54bc98fb81f34 --- src/plugins/arping/arping_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins/arping') diff --git a/src/plugins/arping/arping_test.c b/src/plugins/arping/arping_test.c index ac4349d20d2..00b0b98ab9a 100644 --- a/src/plugins/arping/arping_test.c +++ b/src/plugins/arping/arping_test.c @@ -52,7 +52,6 @@ api_arping (vat_main_t *vam) arping_args_t args = { 0 }; int ret; unformat_input_t *input = vam->input; - vnet_main_t *vnm = vnet_get_main (); f64 interval = ARPING_DEFAULT_INTERVAL; vl_api_control_ping_t *mp_ping; arping_test_main_t *atm = &arping_test_main; @@ -76,8 +75,7 @@ api_arping (vat_main_t *vam) return -99; } - if (!unformat_user (input, unformat_vnet_sw_interface, vnm, - &args.sw_if_index)) + if (!unformat_user (input, api_unformat_sw_if_index, vam, &args.sw_if_index)) { errmsg ("unknown interface `%U'", format_unformat_error, input); return -99; -- cgit 1.2.3-korg