diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-08 19:32:53 +0000 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-12 20:19:28 -0400 |
| commit | 58255d344034a360de07b4998ff2936a8d2c604d (patch) | |
| tree | 15a70889ce025b9217b845732eaf6d1f2fe9e772 /zebra/interface.c | |
| parent | 88227bbe362c827208541f8bd145bd2cccfb1f59 (diff) | |
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>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 9fd31aa7de..b47d03929f 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -757,7 +757,7 @@ vrf_delete_update (struct vrf *vrfp) while processing the deletion. Each client daemon is responsible for setting vrf-id to IFINDEX_INTERNAL after processing the interface deletion message. */ - vrfp->vrf_id = 0; + vrfp->vrf_id = VRF_UNKNOWN; } |
