staticd: Add missing enum's to switch statement

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2023-01-30 10:09:22 -05:00
parent d0038397b7
commit 7c734d8020
2 changed files with 7 additions and 3 deletions

View file

@ -209,7 +209,8 @@ bool static_add_nexthop_validate(const char *nh_vrf_name,
vrf->vrf_id)) vrf->vrf_id))
return false; return false;
break; break;
default: case STATIC_IFNAME:
case STATIC_BLACKHOLE:
break; break;
} }
@ -302,7 +303,8 @@ struct static_nexthop *static_add_nexthop(struct static_path *pn,
case STATIC_IPV6_GATEWAY_IFNAME: case STATIC_IPV6_GATEWAY_IFNAME:
nh->addr.ipv6 = ipaddr->ipaddr_v6; nh->addr.ipv6 = ipaddr->ipaddr_v6;
break; break;
default: case STATIC_IFNAME:
case STATIC_BLACKHOLE:
break; break;
} }
/* /*

View file

@ -135,7 +135,9 @@ static int static_route_nb_run(struct vty *vty, struct static_route_args *args)
if (args->source) if (args->source)
assert(!!str2prefix(args->source, &src)); assert(!!str2prefix(args->source, &src));
break; break;
default: case AFI_L2VPN:
case AFI_UNSPEC:
case AFI_MAX:
break; break;
} }