a881a23908
* [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.
9 lines
171 B
Django/Jinja
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 }}
|
|
!
|