]> git.proxmox.com Git - mirror_frr.git/commit - babeld/babel_interface.h
*: Add infrastructure to support zapi interface callbacks
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 18 Sep 2019 20:20:04 +0000 (16:20 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 19 Sep 2019 17:34:06 +0000 (13:34 -0400)
commit138c5a745018a291c8463b67dba7602886859d2e
tree58e5fa805122bfb110bc347db2d263c9ef1a5920
parent1d311a05c97d6b7b6c893aafa86db150a7397887
*: Add infrastructure to support zapi interface callbacks

Start the conversion to allow zapi interface callbacks to be
controlled like vrf creation/destruction/change callbacks.

This will allow us to consolidate control into the interface.c
instead of having each daemon read the stream and react accordingly.
This will hopefully reduce a bunch of cut-n-paste stuff

Create 4 new callback functions that will be controlled by
lib/if.c

create -> A upper level protocol receives an interface creation event
The ifp is brand spanking newly created in the system.
up -> A upper level protocol receives a interface up event
This means the interface is up and ready to go.
down -> A upper level protocol receives a interface down
destroy -> A upper level protocol receives a destroy event
This means to delete the pointers associated with it.

At this point this is just boilerplate setup for future commits.
There is no new functionality.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
30 files changed:
babeld/babel_interface.c
babeld/babel_interface.h
babeld/babel_main.c
bfdd/ptm_adapter.c
bgpd/bgp_zebra.c
eigrpd/eigrp_interface.c
eigrpd/eigrp_interface.h
isisd/isis_circuit.c
ldpd/ldp_zebra.c
lib/if.c
lib/if.h
nhrpd/nhrp_interface.c
nhrpd/nhrp_main.c
nhrpd/nhrpd.h
ospf6d/ospf6_interface.c
ospfd/ospf_interface.c
pbrd/pbr_main.c
pbrd/pbr_zebra.c
pbrd/pbr_zebra.h
pimd/pim_iface.c
pimd/pim_iface.h
pimd/pim_main.c
ripd/rip_interface.c
ripngd/ripng_interface.c
sharpd/sharp_zebra.c
staticd/static_zebra.c
vrrpd/vrrp_vty.c
vrrpd/vrrp_zebra.c
vrrpd/vrrp_zebra.h
zebra/interface.c