L2FIB:fix crash in show with deleted subif entries 09/7109/3
authorEyal Bari <ebari@cisco.com>
Mon, 12 Jun 2017 14:07:22 +0000 (17:07 +0300)
committerDave Barach <openvpp@barachs.net>
Mon, 12 Jun 2017 22:52:35 +0000 (22:52 +0000)
commitb823df5a7db8208f0162a50ba034a2037f7e7c67
treee7ccba5ff72902f16d0e76b1cf8f18b3d993bf3a
parent4af9ba1dabe3dbd4a2dd3d8c71434477c5ea81b9
L2FIB:fix crash in show with deleted subif entries

after deleting a sub interface it's l2fib entries are left with a dangling
sw_if_index (while waiting for the ager to delete them).
changed "show l2fib" to reflect that state with "Deleted" as the interface name.

added sleep in test_l2_fib as a workaround for packets still passing after flush
will investigate...

Change-Id: Id998d7d3c6a073ef5005c5f3009e1cfb7febf7db
Signed-off-by: Eyal Bari <ebari@cisco.com>
src/vnet/l2/l2_fib.c
test/test_l2_fib.py