]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Only create vrf route-node if in the kernel
authorDon Slice <dslice@cumulusnetworks.com>
Thu, 21 Apr 2016 16:15:07 +0000 (16:15 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 21 Apr 2016 16:15:07 +0000 (16:15 +0000)
commitc88a8b757dc233c4c7667781bc1bd3c2fcab6c67
tree92cfc8422e347de0f379500c1c8ee0c42097e686
parentc26cb638153f210052ba6e7be390a9bb863f0586
zebra: Only create vrf route-node if in the kernel

Changed vrf_get to only create a route-node if the kernel has enabled the vrf,
supplying a table-id.  If the quagga configuration contains vrfs that have not
yet been enabled by the kernel, the vrf is created with a vrf_id of VRF_UNKNOWN.
These vrfs are added to the vrf_list so they contain a zvrf and configuration,
but the route-node is not created until the kernel has signalled that the vrf
has been defined and enabled.

Ticket: CM-10481
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
lib/vrf.c