From 7dbd7265daf6fa0f522870586036c89a99bc4958 Mon Sep 17 00:00:00 2001 From: John Lo Date: Thu, 31 May 2018 10:25:18 -0400 Subject: Improve L2FIB delete entry handling and "show l2fib" CLI options Improve deletion of L2FIB MAC entry using l2fib_add_del API. If sw_if_index param specified in th API is non-zero, check that its value match that of the MAC entry to proceed with deletion. Improve "show l2fib" CLI to allow display of all entries, learned entries only, or added ovia CLI/API entries only. For added entry, show "no" under the age column to indicate entry does not age. Change-Id: I0bd2582c2b6bac268e551e4f8ca6dab2be4400ad Signed-off-by: John Lo --- src/vnet/l2/l2_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/l2/l2_input.c') diff --git a/src/vnet/l2/l2_input.c b/src/vnet/l2/l2_input.c index 69de2815536..6e3851e8512 100644 --- a/src/vnet/l2/l2_input.c +++ b/src/vnet/l2/l2_input.c @@ -587,7 +587,7 @@ set_int_l2_mode (vlib_main_t * vm, vnet_main_t * vnet_main, /* */ config->bvi = 0; /* delete the l2fib entry for the bvi interface */ - l2fib_del_entry (hi->hw_address, config->bd_index); + l2fib_del_entry (hi->hw_address, config->bd_index, sw_if_index); /* Make loop output node send packet back to ethernet-input node */ slot = -- cgit 1.2.3-korg