3bb248bd67
1. Changes for Generation LC-Graph for packet-based chassis. 2. Added Support Ipv6 Peering on Loopback4096 for voq also 3. Updated asic topology yml files to be offset of slot 4. Made slot_num to take string slot<number> instead of number 5. Consolidated template_dpg_voq_asic.j2 into dpg_asic.j2 6. Remove Loopback4096 from asic topology and parse as dut invertory for multi-asic 7. Updated topo_facts parsing for asic topology_ 8. Internal BGP Session rename from <VoqChassisInternal> to <ChassisInternal> and take switch_type as value. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
34 lines
1.6 KiB
Django/Jinja
34 lines
1.6 KiB
Django/Jinja
!
|
|
! template: bgpd/templates/internal/peer-group.conf.j2
|
|
{% from "common/functions.conf.j2" import get_ipv4_loopback_address %}
|
|
{% from "common/functions.conf.j2" import get_ipv6_loopback_address %}
|
|
!
|
|
neighbor INTERNAL_PEER_V4 peer-group
|
|
neighbor INTERNAL_PEER_V6 peer-group
|
|
address-family ipv4
|
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
|
|
neighbor INTERNAL_PEER_V4 update-source {{ get_ipv4_loopback_address(CONFIG_DB__LOOPBACK_INTERFACE, "Loopback4096") | ip }}
|
|
{% elif CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' %}
|
|
neighbor INTERNAL_PEER_V4 route-reflector-client
|
|
{% endif %}
|
|
neighbor INTERNAL_PEER_V4 soft-reconfiguration inbound
|
|
neighbor INTERNAL_PEER_V4 allowas-in 1
|
|
neighbor INTERNAL_PEER_V4 route-map FROM_BGP_INTERNAL_PEER_V4 in
|
|
neighbor INTERNAL_PEER_V4 route-map TO_BGP_INTERNAL_PEER_V4 out
|
|
exit-address-family
|
|
address-family ipv6
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
|
|
neighbor INTERNAL_PEER_V4 update-source {{ get_ipv6_loopback_address(CONFIG_DB__LOOPBACK_INTERFACE, "Loopback4096") | ip }}
|
|
{% elif CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' %}
|
|
neighbor INTERNAL_PEER_V6 route-reflector-client
|
|
{% endif %}
|
|
neighbor INTERNAL_PEER_V6 soft-reconfiguration inbound
|
|
neighbor INTERNAL_PEER_V6 allowas-in 1
|
|
neighbor INTERNAL_PEER_V6 route-map FROM_BGP_INTERNAL_PEER_V6 in
|
|
neighbor INTERNAL_PEER_V6 route-map TO_BGP_INTERNAL_PEER_V6 out
|
|
exit-address-family
|
|
!
|
|
! end of template: bgpd/templates/internal/peer-group.conf.j2
|
|
!
|