]> git.puffer.fish Git - matthieu/frr.git/commit
Zebra: Fix setting source for 5549-learnt routes via ip protocol
authorvivek <vivek@cumulusnetworks.com>
Tue, 20 Oct 2015 21:32:12 +0000 (14:32 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 20 Oct 2015 21:32:12 +0000 (14:32 -0700)
commitfb5d585cec588698e23ad7555298b28f581c6638
tree06c1ce70c7e760193a5d91bca801961dccc4e915
parentf35a5350975a943f4f219fcb708e2e5ef15597e1
Zebra: Fix setting source for 5549-learnt routes via ip protocol

Ticket: CM-6854
Reviewed By: CCR-3297
Testing Done: bgpsmoke, bgpclos to verify setting source (in 2.5-br)

Two pieces prevented the user from specifying a route-map with set src on
IPv4 routes learnt via BGP's RFC 5549 model (v4 prefix with v6 nexthop):
   - There was code missing in the section specific to 5549 in setting
     the src in the netlink message
   - During RIB processing, route-map processing was ignored when the NH
     was v6 and the route itself was v4.

As per the code, all route-map processing that uses nexthop validates the
NH type before applying the route-map and so there should be no errors
as a consequence of relaxing bullet 2 above.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c
zebra/zebra_rib.c