]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: `neighbor X:X::X default-originate` complains about (null) 4961/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 20 Jun 2019 15:12:35 +0000 (11:12 -0400)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 10 Sep 2019 20:25:10 +0000 (23:25 +0300)
commit7ecced0045d6064b6c521225427d08f310e571a0
treedcf75c556e6d38eb8f6e38985423c09a6ab99c57
parent2fec72c8bfc36fe9a43fbdc932ac3e6ed1c63749
bgpd: `neighbor X:X::X default-originate` complains about (null)

The `neighbor X:X::X default-originate command is complaining
that:
The route-map '(null)' does not exist.

Upon inspection of the code we were passing a NULL
string to the lookup.  Testing for null gets us this:

donna.cumulusnetworks.com# conf t
donna.cumulusnetworks.com(config)# router bgp 99
donna.cumulusnetworks.com(config-router)# neighbor 2001:1::1:2 remote-as 99
donna.cumulusnetworks.com(config-router)# neighbor 2001:1::1:2 default-originate
donna.cumulusnetworks.com(config-router)# end
donna.cumulusnetworks.com# show run
Building configuration...

Current configuration:
!
frr version 7.2-dev
frr defaults datacenter
hostname donna.cumulusnetworks.com
log stdout
no ipv6 forwarding
!
ip route 4.5.6.7/32 10.50.11.4
!
router bgp 99
 neighbor 2001:1::1:2 remote-as 99
 !
 address-family ipv4 unicast
  neighbor 2001:1::1:2 default-originate

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c