mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
staticd: Add missing enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
d0038397b7
commit
7c734d8020
|
@ -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;
|
||||
}
|
||||
/*
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue