]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Ensure VRF is created with correct id
authorvivek <vivek@cumulusnetworks.com>
Mon, 4 Apr 2016 17:58:06 +0000 (10:58 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 5 Apr 2016 15:39:16 +0000 (08:39 -0700)
commit8087b296b4750eda2d34e4f48731f81415bdccd2
treea3903ff7e4cb0f07f3572d5995f12f50ecd3a4fe
parent66e373aec05c7f3353adbc36115b930b9b2ebf8c
lib: Ensure VRF is created with correct id

In function vrf_get(), an early call to vrf_get_by_name() may end up
creating the Zebra VRF structure prior to the VRF id being set,
resulting in various other misbehavior. Fix this with appropriate
changes.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Ticket: CM-10258
Reviewed By: CCR-4418
Testing Done: Manual
lib/vrf.c