4e60f0d563
Why I did it To support BGPMon sessions from each T2 linecard ASIC Work item tracking Microsoft ADO (number only): 17873174 How I did it Added change in BGPMon configuration to use Loopback4096 as source interface, since this has a unique IP per ASIC. How to verify it Tested by manually setting up BGPMon session on T2 LC and verified that Loopback4096 could be used as source
32 lines
907 B
Django/Jinja
32 lines
907 B
Django/Jinja
!
|
|
! template: bgpd/templates/BGPMON/peer-group.conf.j2
|
|
!
|
|
neighbor BGPMON peer-group
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'SpineRouter' %}
|
|
neighbor BGPMON update-source Loopback4096
|
|
{% else %}
|
|
neighbor BGPMON update-source {{ loopback0_ipv4 | ip }}
|
|
{% endif %}
|
|
|
|
address-family ipv4
|
|
neighbor BGPMON activate
|
|
neighbor BGPMON route-map FROM_BGPMON in
|
|
neighbor BGPMON route-map TO_BGPMON out
|
|
neighbor BGPMON send-community
|
|
neighbor BGPMON maximum-prefix 1
|
|
exit-address-family
|
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'SpineRouter' %}
|
|
address-family ipv6
|
|
neighbor BGPMON activate
|
|
neighbor BGPMON route-map FROM_BGPMON in
|
|
neighbor BGPMON route-map TO_BGPMON out
|
|
neighbor BGPMON send-community
|
|
neighbor BGPMON maximum-prefix 1
|
|
exit-address-family
|
|
{% endif %}
|
|
!
|
|
! end of template: bgpd/templates/BGPMON/peer-group.conf.j2
|
|
!
|
|
|