Merge pull request #5303 from taspelund/special_interface_error

staticd: Make blackhole keyword errors more straightforward
This commit is contained in:
Rafael Zalamena 2019-11-15 13:35:13 -03:00 committed by GitHub
commit 1e5fe0e258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,10 +431,10 @@ static int static_route_leak(
|| strcasecmp(ifname, "blackhole") == 0) { || strcasecmp(ifname, "blackhole") == 0) {
if (vty) if (vty)
vty_out(vty, vty_out(vty,
"%% Nexthop interface cannot be Null0, reject or blackhole\n"); "%% Nexthop interface name can not be from reserved keywords (Null0, reject, blackhole)\n");
else else
zlog_warn( zlog_warn(
"%s: Nexthop interface cannot be Null0, reject or blackhole for %s", "%s: %s: Nexthop interface name can not be from reserved keywords (Null0, reject, blackhole)\n",
__PRETTY_FUNCTION__, dest_str); __PRETTY_FUNCTION__, dest_str);
return CMD_WARNING_CONFIG_FAILED; return CMD_WARNING_CONFIG_FAILED;
} }