summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-06-14 06:51:06 -0400
committerGitHub <noreply@github.com>2017-06-14 06:51:06 -0400
commit93f855c24a301bbebf4a9ce9f4b10d3edf217709 (patch)
tree3bc797e6d57adfe35ee4f49a38dcd3a0176e754b
parent98f65fda88e54c0c1ae3060124c5bcf62bb01796 (diff)
parent59b28c452343c7ef29c15b77bbb4c45899c73773 (diff)
Merge pull request #712 from opensourcerouting/fix-issue-683
Fix srcdest blackhole routes
-rw-r--r--zebra/zebra_vty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 1708138d83..a8bee3cf50 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -2423,10 +2423,10 @@ static_ipv6_func (struct vty *vty, int add_cmd, const char *dest_str,
return CMD_WARNING;
}
if (add_cmd)
- static_add_route (AFI_IP6, SAFI_UNICAST, type, &p, NULL, NULL, ifindex, ifname,
+ static_add_route (AFI_IP6, SAFI_UNICAST, type, &p, src_p, NULL, ifindex, ifname,
ZEBRA_FLAG_BLACKHOLE, tag, distance, zvrf, &snh_label);
else
- static_delete_route (AFI_IP6, SAFI_UNICAST, type, &p, NULL, NULL, ifindex, tag,
+ static_delete_route (AFI_IP6, SAFI_UNICAST, type, &p, src_p, NULL, ifindex, tag,
distance, zvrf, &snh_label);
return CMD_SUCCESS;
}
@@ -2510,7 +2510,6 @@ DEFUN (ipv6_route,
"IPv6 gateway address\n"
"IPv6 gateway interface name\n"
"Null interface\n"
- "Null interface\n"
"Set tag for this route\n"
"Tag value\n"
"Distance value for this prefix\n"
@@ -2559,7 +2558,6 @@ DEFUN (ipv6_route_flags,
"IPv6 gateway interface name\n"
"Emit an ICMP unreachable when matched\n"
"Silently discard pkts when matched\n"
- "Silently discard pkts when matched\n"
"Set tag for this route\n"
"Tag value\n"
"Distance value for this prefix\n"