2020-10-28 18:41:27 -05:00
!
! template: bgpd/templates/internal/instance.conf.j2
!
neighbor {{ neighbor_addr }} remote-as {{ bgp_session['asn'] }}
neighbor {{ neighbor_addr }} description {{ bgp_session['name'] }}
2020-11-10 11:34:56 -06:00
neighbor {{ neighbor_addr }} timers 3 10
2021-03-18 01:14:38 -05:00
neighbor {{ neighbor_addr }} timers connect 10
2020-10-28 18:41:27 -05:00
!
{% if neighbor_addr | ipv4 %}
address-family ipv4
neighbor {{ neighbor_addr }} peer-group INTERNAL_PEER_V4
!
2023-06-07 11:17:44 -05:00
{% if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' or CONFIG_DB__DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
2021-02-26 19:05:15 -06:00
neighbor {{ neighbor_addr }} next-hop-self force
2020-10-28 18:41:27 -05:00
{% endif %}
!
{% elif neighbor_addr | ipv6 %}
address-family ipv6
neighbor {{ neighbor_addr }} peer-group INTERNAL_PEER_V6
!
2023-06-07 11:17:44 -05:00
{% if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' or CONFIG_DB__DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
2021-02-26 19:05:15 -06:00
neighbor {{ neighbor_addr }} next-hop-self force
2020-10-28 18:41:27 -05:00
{% endif %}
{% endif %}
!
2020-11-10 11:34:56 -06:00
{% if 'rrclient' in bgp_session and bgp_session['rrclient'] | int != 0 %}
2020-10-28 18:41:27 -05:00
neighbor {{ neighbor_addr }} route-reflector-client
{% endif %}
!
!
neighbor {{ neighbor_addr }} activate
exit-address-family
!
! end of template: bgpd/templates/internal/instance.conf.j2
!