diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-10-28 16:53:38 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-28 16:18:35 -0200 |
| commit | 60f1637a8b35b2968e64dd1619e499033c8068bb (patch) | |
| tree | 02da824e63a7ae43aae9750c2d6f3046deee0a00 /lib/ns.h | |
| parent | f30c50b99223be343b7fe1ae9e374602ec0d93d5 (diff) | |
lib: fix creation of pre-provisioned VRFs
If we configure a VRF that doesn't match any device in the kernel, we'll
fall in the first case of the vrf_get() function. In this function,
a vrf structure is callocated and it's vrf_id is never set explicitly,
which means it's set to zero (the vrf-id of the default VRF). When this
happens, commands like "router-id A.B.C.D vrf ..." will act on the
default VRF and not on the pre-provisioned VRF. To fix this, always
set the vrf_id of pre-provisioned VRFs to VRF_UNKNOWN.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/ns.h')
0 files changed, 0 insertions, 0 deletions
