summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-30 10:09:22 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-01-31 15:15:42 -0500
commit7c734d80209a3cf36e3b31e667a53fdef6afd47a (patch)
treea7e1d8b29b2526a1423a3172760cfaa739fa0b5e /staticd
parentd0038397b7c3d20a3c14c9fab5c8d012d145faae (diff)
staticd: Add missing enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_routes.c6
-rw-r--r--staticd/static_vty.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c
index ccbb98bd11..0c39058a8d 100644
--- a/staticd/static_routes.c
+++ b/staticd/static_routes.c
@@ -209,7 +209,8 @@ bool static_add_nexthop_validate(const char *nh_vrf_name,
vrf->vrf_id))
return false;
break;
- default:
+ case STATIC_IFNAME:
+ case STATIC_BLACKHOLE:
break;
}
@@ -302,7 +303,8 @@ struct static_nexthop *static_add_nexthop(struct static_path *pn,
case STATIC_IPV6_GATEWAY_IFNAME:
nh->addr.ipv6 = ipaddr->ipaddr_v6;
break;
- default:
+ case STATIC_IFNAME:
+ case STATIC_BLACKHOLE:
break;
}
/*
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index c5bea755ec..f9c88f8bec 100644
--- a/staticd/static_vty.c
+++ b/staticd/static_vty.c
@@ -135,7 +135,9 @@ static int static_route_nb_run(struct vty *vty, struct static_route_args *args)
if (args->source)
assert(!!str2prefix(args->source, &src));
break;
- default:
+ case AFI_L2VPN:
+ case AFI_UNSPEC:
+ case AFI_MAX:
break;
}