2020-04-23 11:42:22 -05:00
|
|
|
!
|
|
|
|
! template: bgpd/templates/BGPMON/peer-group.conf.j2
|
|
|
|
!
|
|
|
|
neighbor BGPMON peer-group
|
2023-05-09 15:40:00 -05:00
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'SpineRouter' %}
|
|
|
|
neighbor BGPMON update-source Loopback4096
|
|
|
|
{% else %}
|
2020-04-23 11:42:22 -05:00
|
|
|
neighbor BGPMON update-source {{ loopback0_ipv4 | ip }}
|
2023-05-09 15:40:00 -05:00
|
|
|
{% 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 %}
|
2020-04-23 11:42:22 -05:00
|
|
|
!
|
|
|
|
! end of template: bgpd/templates/BGPMON/peer-group.conf.j2
|
|
|
|
!
|
2023-05-09 15:40:00 -05:00
|
|
|
|