]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: conditional default-originate using route-map
authorChristian Franke <chris@opensourcerouting.org>
Fri, 7 Dec 2012 16:45:52 +0000 (16:45 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Jan 2013 00:45:57 +0000 (01:45 +0100)
commitdcab1bb822161d55795aad59b14c5c5d79b71e1f
tree0e55397d41d91f613123c6c812bc8691caa02b27
parent86998bc2bc9506841250c8d49dd2df2464660a18
bgpd: conditional default-originate using route-map

Incorporate a patch by Svetozar Mihailov which implements
default-originate route-maps to behave as expected, i.e. allowing
the default route to be advertised conditionally, depending on a
criterion given by the route-map.

I am aware that the performance attributes of the following implementation
are far from optimal. However, this affects only code paths belonging to
a feature that is broken without this patch, therefore, it seems reasonable
to me to have this in the mainline for now.

Cc: Svetozar Mihailov <quagga@j.zarhi.com>
Reported-by: Sébastien Cramatte <scramatte@gmail.com>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
NEWS
bgpd/bgp_nexthop.c
bgpd/bgp_route.c