We don't need to enforce that the interface exists because the route can
be activated later once the interface becomes available. We already do
this for IPv4 routes and IPv6 routes with both a nexthop address and a
nexthop interface.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
if (!ifp) {
vty_out(vty, "%% Malformed Interface name %s\n",
ifname);
- return CMD_WARNING_CONFIG_FAILED;
- }
- ifindex = ifp->ifindex;
+ ifindex = IFINDEX_DELETED;
+ } else
+ ifindex = ifp->ifindex;
} else {
if (ret == 1) {
type = STATIC_IPV6_GATEWAY;