break;
case STATIC_IPV4_GATEWAY_IFNAME:
case STATIC_IPV6_GATEWAY_IFNAME:
+ case STATIC_IFNAME:
ifp = if_lookup_by_name(ifname, nh->nh_vrf_id);
if (ifp && ifp->ifindex != IFINDEX_INTERNAL)
nh->ifindex = ifp->ifindex;
zlog_warn(
"Static Route using %s interface not installed because the interface does not exist in specified vrf",
ifname);
-
- break;
- case STATIC_IFNAME:
- ifp = if_lookup_by_name(ifname, nh->nh_vrf_id);
- if (ifp && ifp->ifindex != IFINDEX_INTERNAL) {
- nh->ifindex = ifp->ifindex;
- } else
- zlog_warn(
- "Static Route using %s interface not installed because the interface does not exist in specified vrf",
- ifname);
break;
}