Prefix to blackhole
fredrik danerklint
fredan-bird at fredan.se
Mon Feb 27 16:58:01 CET 2012
Hi!
I want to be able to set a router prefix via bgp to blackhole.
What I have is this:
if ((my_as, 666) ~ bgp_community) then {
print "blackhole '", net, "' from AS", bgp_path.last, " via AS",
bgp_path.first, " [", proto, "]";
# set nexthop blackhole;
# bgp_next_hop blackhole;
bgp_community.delete((my_as, 666 ));
return false;
}
but either set nexthop or bgp_next_hop works.
Is this possible in bird?
--
//fredan
More information about the Bird-users
mailing list