]> git.proxmox.com Git - mirror_frr.git/commit - lib/vrf.h
lib, zebra: Refactor vrf creation a bit more
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 8 Apr 2016 19:32:53 +0000 (19:32 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 13 Apr 2016 00:19:28 +0000 (20:19 -0400)
commit58255d344034a360de07b4998ff2936a8d2c604d
tree15a70889ce025b9217b845732eaf6d1f2fe9e772
parent88227bbe362c827208541f8bd145bd2cccfb1f59
lib, zebra: Refactor vrf creation a bit more

Create the idea of a VRF_UNKNOWN, this is for a vrf where we don't
yet have the vrf_id for it yet.

Refactor the vrf_create code out of existence.  We had two code
paths vrf_create and vrf_get.  We should use vrf_get to create
the new vrf since XXX_get() creates the data structures now.

Signed-off-by: Donald Sharp
Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
lib/if.c
lib/vrf.c
lib/vrf.h
zebra/interface.c
zebra/zebra_rib.c