2020-04-23 11:42:22 -05:00
|
|
|
!
|
|
|
|
! template: bgpd/templates/general/peer-group.conf.j2
|
|
|
|
!
|
|
|
|
neighbor PEER_V4 peer-group
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V4_INT peer-group
|
2020-04-23 11:42:22 -05:00
|
|
|
neighbor PEER_V6 peer-group
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V6_INT peer-group
|
2020-04-23 11:42:22 -05:00
|
|
|
address-family ipv4
|
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'ToRRouter' %}
|
|
|
|
neighbor PEER_V4 allowas-in 1
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V4_INT allowas-in 1
|
2020-05-06 16:58:02 -05:00
|
|
|
{% endif %}
|
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' %}
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V4_INT route-reflector-client
|
2020-04-23 11:42:22 -05:00
|
|
|
{% endif %}
|
|
|
|
neighbor PEER_V4 soft-reconfiguration inbound
|
|
|
|
neighbor PEER_V4 route-map FROM_BGP_PEER_V4 in
|
|
|
|
neighbor PEER_V4 route-map TO_BGP_PEER_V4 out
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V4_INT soft-reconfiguration inbound
|
|
|
|
neighbor PEER_V4_INT route-map FROM_BGP_PEER_V4 in
|
|
|
|
neighbor PEER_V4_INT route-map TO_BGP_PEER_V4 out
|
2020-04-23 11:42:22 -05:00
|
|
|
exit-address-family
|
|
|
|
address-family ipv6
|
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'ToRRouter' %}
|
|
|
|
neighbor PEER_V6 allowas-in 1
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V6_INT allowas-in 1
|
2020-10-02 12:06:04 -05:00
|
|
|
{% endif %}
|
2020-05-06 16:58:02 -05:00
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' %}
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V6_INT route-reflector-client
|
2020-04-23 11:42:22 -05:00
|
|
|
{% endif %}
|
|
|
|
neighbor PEER_V6 soft-reconfiguration inbound
|
|
|
|
neighbor PEER_V6 route-map FROM_BGP_PEER_V6 in
|
|
|
|
neighbor PEER_V6 route-map TO_BGP_PEER_V6 out
|
2020-05-20 22:52:11 -05:00
|
|
|
neighbor PEER_V6_INT soft-reconfiguration inbound
|
|
|
|
neighbor PEER_V6_INT route-map FROM_BGP_PEER_V6 in
|
|
|
|
neighbor PEER_V6_INT route-map TO_BGP_PEER_V6 out
|
2020-04-23 11:42:22 -05:00
|
|
|
exit-address-family
|
|
|
|
!
|
|
|
|
! end of template: bgpd/templates/general/peer-group.conf.j2
|
|
|
|
!
|