Skip to content

Commit 5ad8413

Browse files
authored
Merge pull request sonic-net#75 from abdosi/202205
Chery pick of azure master PR # 16026
2 parents 559ebcb + e8ae138 commit 5ad8413

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

dockers/docker-fpm-frr/frr/bgpd/bgpd.main.conf.j2

+3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
9393
{% if get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") != 'None' %}
9494
address-family ipv6
9595
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/64
96+
{% if DEVICE_METADATA['localhost']['switch_type'] == 'voq' or DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
97+
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/128 route-map HIDE_INTERNAL
98+
{% endif %}
9699
exit-address-family
97100
{% endif %}
98101
{% if ((multi_asic is defined and DEVICE_METADATA['localhost']['switch_type'] != 'chassis-packet') or (DEVICE_METADATA['localhost']['switch_type'] == 'voq')) %}

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/packet_chassis.conf

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ router bgp 55555
4646
!
4747
address-family ipv6
4848
network fc00::1/64
49+
network fc00::1/128 route-map HIDE_INTERNAL
4950
exit-address-family
5051
!
5152
network 10.10.10.1/24

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/voq_chassis.conf

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ router bgp 55555
4747
!
4848
address-family ipv6
4949
network fc00::1/64
50+
network fc00::1/128 route-map HIDE_INTERNAL
5051
exit-address-family
5152
address-family ipv6
5253
network fc00::2/128 route-map HIDE_INTERNAL

0 commit comments

Comments
 (0)