Skip to content

Commit c6d1dae

Browse files
authored
Fix the Loopback0 IPv6 address of LC's in chassis not reachable from (#16026)
What I did: Fix the Loopback0 IPv6 address of LC's in chassis not reachable from peer devices. Why I did: For Ipv6 Loopback0 address we only advertise /64 subnet to the peer devices. However, in case of chassis each LC will have it own /128 address of that /64 subnet . Since this /128 address does not get advertised peer devices can-not ping/reach the LC's loopback0. How I fix: Advertise /128 Loopback0 Ipv6 address only between i-BGP peers. This way even though /64 is advertised to e-BGP peer devices when packet reaches any of LC's it can reach the appropriate LC's. How I verify: Manual verification UT added for same. Signed-off-by: Abhishek Dosi <[email protected]>
1 parent 9fba98c commit c6d1dae

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
104104
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/128
105105
{% else %}
106106
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/64
107+
{% if DEVICE_METADATA['localhost']['switch_type'] == 'voq' or DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
108+
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/128 route-map HIDE_INTERNAL
109+
{% endif %}
107110
{% endif %}
108111
exit-address-family
109112
{% endif %}

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

Lines changed: 1 addition & 0 deletions
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
!
5253
network 10.10.10.1/24

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ router bgp 55555
4848
!
4949
address-family ipv6
5050
network fc00::1/64
51+
network fc00::1/128 route-map HIDE_INTERNAL
5152
exit-address-family
5253
address-family ipv6
5354
network fc00::2/128 route-map HIDE_INTERNAL

0 commit comments

Comments
 (0)