]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: `neighbor X:X::X default-originate` complains about (null)
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:21:40 +0000 (23:21 +0300)
commit08793e9944d39fb2b0dd42b82723cfb79c94ec59
treec0195fa8d46267408d6316ded550acaf69ab76e7
parente7c0db4770df278bc72dd9fb6143cb91a02c3669
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