]> git.puffer.fish Git - matthieu/frr.git/commit
lib, bgpd: Refactor vrf handling through zclient
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 15 Apr 2016 01:46:44 +0000 (21:46 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 15 Apr 2016 12:42:03 +0000 (08:42 -0400)
commit2fcc254eed8931c1fb6041abc824f46efb4a65cc
tree01fe38bdba96d95afa20ecf1aeda905918f2be18
parent33e450331eb2060dc315915e13949ad2f0960114
lib, bgpd: Refactor vrf handling through zclient

Protocols receive zclient vrf creation events from zebra.
This data was being handed to the protocol to decode and
then to hand back to zclient to create the vrf to then
handle appropriately.  This is a bad idea.

Modify the code such that when zclient.c receives a vrf
event from zebra that it decodes the data and just creates
the vrf.  Individual protocols just need to handle the
appropriate vrf events.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
bgpd/bgp_main.c
bgpd/bgp_zebra.c
lib/zclient.c
lib/zclient.h