diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2022-08-08 10:31:11 +0200 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-08-09 08:16:32 +0000 |
commit | 83caa62efa09438adbacd469f358762153a962bf (patch) | |
tree | 1975a9282f32a41531713dcc9fb12ffbd054f223 | |
parent | 8a419d5b5dd3da5d3d8597cd65ac74f191fb7da7 (diff) |
interface: fix show_or_clear_hw_interfaces
Change-Id: I2f3163a7a158afa8e2debc6f545c3d1a2a12ac1d
Type: fix
Fixes: 3414977152ae6362277158dc732e6b9958a6e618
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
-rw-r--r-- | src/vnet/interface_cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/interface_cli.c b/src/vnet/interface_cli.c index ce36e3d27fd..3515c395e53 100644 --- a/src/vnet/interface_cli.c +++ b/src/vnet/interface_cli.c @@ -77,7 +77,7 @@ show_or_clear_hw_interfaces (vlib_main_t * vm, int i, verbose = -1, show_bond = 0; if (!unformat_user (input, unformat_line_input, line_input)) - return 0; + goto skip_unformat; while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { @@ -117,6 +117,7 @@ show_or_clear_hw_interfaces (vlib_main_t * vm, unformat_free (line_input); +skip_unformat: /* Gather interfaces. */ if (vec_len (hw_if_indices) == 0) pool_foreach (hi, im->hw_interfaces) |