diff options
author | Igor Ryzhov <idryzhov@gmail.com> | 2024-12-26 22:08:21 +0100 |
---|---|---|
committer | Igor Ryzhov <idryzhov@gmail.com> | 2025-01-15 22:38:27 +0100 |
commit | 4877f2f6856366734a9419aaf9616785242c935a (patch) | |
tree | 125c243b75c066917c6d724574984905750103c5 /lib/if.c | |
parent | Merge pull request #17838 from opensourcerouting/msdp-topo3 (diff) | |
download | frr-4877f2f6856366734a9419aaf9616785242c935a.tar.xz frr-4877f2f6856366734a9419aaf9616785242c935a.zip |
lib: remove VRF_BACKEND_UNKNOWN
The backend type cannot be unknown. It is configured to VRF_LITE by
default in zebra anyway, so just init to VRF_LITE in the lib and remove
the UNKNOWN type.
Signed-off-by: Igor Ryzhov <idryzhov@gmail.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -416,7 +416,6 @@ static struct interface *if_lookup_by_ifindex(ifindex_t ifindex, struct interface *if_lookup_by_index(ifindex_t ifindex, vrf_id_t vrf_id) { switch (vrf_get_backend()) { - case VRF_BACKEND_UNKNOWN: case VRF_BACKEND_NETNS: return(if_lookup_by_ifindex(ifindex, vrf_id)); case VRF_BACKEND_VRF_LITE: @@ -686,7 +685,6 @@ struct interface *if_get_by_name(const char *name, vrf_id_t vrf_id, struct vrf *vrf; switch (vrf_get_backend()) { - case VRF_BACKEND_UNKNOWN: case VRF_BACKEND_NETNS: vrf = vrf_get(vrf_id, vrf_name); assert(vrf); |