]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: skip ra for blackhole nexthop type
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 3 Dec 2019 20:08:01 +0000 (12:08 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 30 Dec 2019 06:16:51 +0000 (22:16 -0800)
commit65f803e80ac9b1d458ec3b0dfff97b15b1ed1b20
tree6d11ef6ef8a0026661d5830b07da8835aafb5642
parent67f6d83ccb2233f84cb205719390fded3c54460d
bgpd: skip ra for blackhole nexthop type

bgp nexthop cache update triggers RA for global ipv6
nexthop update.
In case of blackhole route type the outgoing interface
information is NULL which leads to bgpd crash.

Skip sending RA for blackhole nexthop type.

Ticket:CM-27299
Reviewed By:
Testing Done:

Configure bgp neighbor over global ipv6 address.
Configure static blackhole route with prefix includes
connected ipv6 global address.
Upon link flap, zebra sends nexthop update to bgp.
Bgp nexthop cache skips sending RA for blackhole nexthop type.

router bgp 65002
 bgp router-id 91.189.93.190
 ...
 neighbor 2001:67c:1360::b peer-group internal

static route:
ipv6 route 2001:67c:1360::/48 Null0 254

iface rowlink.4010
        address 91.189.93.190/32
        address 2001:67c:1360::a/128

Trigger ifdown rowlink.4010; ifup rowlink.4010

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_nht.c