]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
*: change interface structure, from vrf_id to vrf
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 11 Feb 2019 16:42:50 +0000 (17:42 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 12 Jun 2019 12:10:28 +0000 (14:10 +0200)
commita41c4e1b1f577443ad26222704a69649c280cd9e
tree2d01484bb959675b20c1596be1c1f4e28ddaf403
parentda85f5e03899ee53e235ef5eb6cdacc1ae85de86
*: change interface structure, from vrf_id to vrf

Field vrf_id is replaced by the pointer of the struct vrf *.
For that all other code referencing to (interface)->vrf_id is replaced.
This work should not change the behaviour.
It is just a continuation work toward having an interface API handling
vrf pointer only.

some new generic functions are created in vrf:
vrf_to_id, vrf_to_name,

a zebra function is also created:
zvrf_info_lookup

an ospf function is also created:
ospf_lookup_by_vrf

it is to be noted that now that interface has a vrf pointer, some more
optimisations could be thought through all the rest of the code. as
example, many structure store the vrf_id. those structures could get
the exact vrf structure if inherited from an interface vrf context.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
36 files changed:
bfdd/bfd.c
bfdd/ptm_adapter.c
bgpd/bgp_zebra.c
isisd/isis_cli.c
lib/if.c
lib/if.h
lib/vrf.c
lib/vrf.h
lib/zclient.c
ospfd/ospf_interface.c
ospfd/ospf_vty.c
ospfd/ospf_zebra.c
ospfd/ospfd.c
ospfd/ospfd.h
pimd/pim_iface.c
pimd/pim_static.c
pimd/pim_zebra.c
ripd/rip_interface.c
ripd/ripd.c
ripngd/ripng_interface.c
ripngd/ripngd.c
staticd/static_routes.c
zebra/connected.c
zebra/if_ioctl.c
zebra/if_netlink.c
zebra/interface.c
zebra/ioctl.c
zebra/redistribute.c
zebra/router-id.c
zebra/rt_netlink.c
zebra/rtadv.c
zebra/zapi_msg.c
zebra/zebra_dplane.c
zebra/zebra_ptm.c
zebra/zebra_vrf.h
zebra/zebra_vxlan.c