]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.c
zebra: evpn remote delete fetch local entry
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 11 Dec 2018 05:33:16 +0000 (21:33 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 31 Dec 2018 22:40:31 +0000 (14:40 -0800)
commit67fb9374dcdebc4b6e135118fe53a9054aa93382
treee6aea55ca52473017968f742e5cca724bf052ae8
parent718f9b0f88116af5e035556058ba2e4bf803cf15
zebra: evpn remote delete fetch local entry

An EVPN type-2 entry is in freeze state during remote update,
remote VTEP can send typ-2 withdraw update,
upon receiving an entry delete (withdraw), first check
kernel has in local reachable state. Upon
unfreeze use the local entry to advertise to peers.
Fetch is for both MAC and IP, delete can come for
only MAC or MAC-IP combined route.

The specific entry fetch only required request flag to be set,
dump flag is not required.

Testing Done:
Simulate two VTEPs to do M1, IP1 mobility sequence,
freeze MAC during remote MAC update, subsequently send
withdraw type-2 route from origintating VTEP.
This results in read apis to invoke for local reachable entry.
Zebra updates its cache and upon unfreeze originates type-2.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
zebra/rt.h
zebra/rt_netlink.c
zebra/rt_netlink.h
zebra/rtread_getmsg.c
zebra/rtread_netlink.c
zebra/rtread_sysctl.c
zebra/zebra_vxlan.c