Improve l2_macs_events API to provide MAC move information 31/11131/3
authorJohn Lo <loj@cisco.com>
Wed, 14 Mar 2018 01:53:18 +0000 (21:53 -0400)
committerDave Barach <openvpp@barachs.net>
Wed, 14 Mar 2018 12:07:48 +0000 (12:07 +0000)
commite23c99ec0061991cf3904122979ac755fe1b78ca
tree9ffa879cbdc7721138e5c0833605c7a060bebf52
parent04def7418b649a94e32149ee924a3743358b5c84
Improve l2_macs_events API to provide MAC move information

Change mac_entry layout in l2_macs_event API message so the MAC
entry can be either add, delete or move where the sw_if_index of
an existing MAC entry changed. Also added a 8-bit flags field
in mac_entry for any future expansion.

Change-Id: I3bf9e1cf2556f2938202025a5d0772c2ce2fc99f
Signed-off-by: John Lo <loj@cisco.com>
src/vat/api_format.c
src/vnet/l2/l2.api
src/vnet/l2/l2_fib.c
src/vnet/l2/l2_fib.h
src/vnet/l2/l2_learn.c
test/test_l2_fib.py