sonic-buildimage/dockers/docker-fpm-quagga/zebra.set_src.conf.j2
pavel-shirshov a881a23908
[bgpcfgd]: Generate set src configuration dynamically (#4273)
* [bgpcfgd]: Generate set src configuration dynamically

Sometimes zebra starts faster then swss configures Loopback0
In this case "set src" inside of the route map will not be
inserted to the configuration because zebra doesn't see Loopback
ips in the list of available ip addresses.

I've added extra logic to push the "set src" configuration only
when Loopback has been configured by swss.
2020-03-18 08:48:03 -07:00

9 lines
171 B
Django/Jinja

!
! Set ip source to loopback for bgp learned routes
!
route-map {{ rm_name }} permit 10
set src {{ lo_ip }}
!
ip{{ ip_proto }} protocol bgp route-map {{ rm_name }}
!