summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorIgor Ryzhov <idryzhov@gmail.com>2024-12-26 22:08:21 +0100
committerIgor Ryzhov <idryzhov@gmail.com>2025-01-15 22:38:27 +0100
commit4877f2f6856366734a9419aaf9616785242c935a (patch)
tree125c243b75c066917c6d724574984905750103c5 /lib/if.c
parentMerge pull request #17838 from opensourcerouting/msdp-topo3 (diff)
downloadfrr-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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/if.c b/lib/if.c
index 796929ef0..68724a65e 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -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);