diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-07-27 23:01:12 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-07-28 04:39:27 +0200 |
commit | 33df4bb219d6c5b972877434c57fa85543dc8a5e (patch) | |
tree | 097c578cb2f53ca46c5d4adef325b406c4bf3c86 /zebra/zebra_vty.c | |
parent | zebra: remove redundant DEFUNs for labeled static routes (diff) | |
download | frr-33df4bb219d6c5b972877434c57fa85543dc8a5e.tar.xz frr-33df4bb219d6c5b972877434c57fa85543dc8a5e.zip |
zebra: accept static v6 routes with non-existent nexthop interfaces
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>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 941090171..a79d8d71b 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -2151,9 +2151,9 @@ static int static_ipv6_func(struct vty *vty, int add_cmd, const char *dest_str, 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; |