bgpd: If route-map does not exist DENY for redistribute statements

Upon usage of a route-map statement in bgp, if the route-map does not exist
it turns into a implicit ALLOW, this causes issues in a wide variety
of scenarios.

Without this fix:
!
router bgp 100
 bgp router-id 10.0.2.15
 redistribute static route-map FOOEY
!
ip route 33.33.33.33/32 eth1
ip route 44.44.44.44/32 eth1
!

Now look at show ip bgp:
show ip bgp:

   Network          Next Hop            Metric LocPrf Weight Path
*> 33.33.33.33/32   0.0.0.0                  0         32768 ?
*> 44.44.44.44/32   0.0.0.0                  0         32768 ?

With this fix:

show ip bgp:
   Network          Next Hop            Metric LocPrf Weight Path

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com
1 file changed