Skip to content

Commit

Permalink
Fix the Loopback0 IPv6 address of LC's in chassis not reachable from (#…
Browse files Browse the repository at this point in the history
…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 <abdosi@microsoft.com>
  • Loading branch information
abdosi authored and mssonicbld committed Aug 14, 2023
1 parent 6876f27 commit 15a39ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockers/docker-fpm-frr/frr/bgpd/bgpd.main.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/128
{% else %}
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/64
{% if DEVICE_METADATA['localhost']['switch_type'] == 'voq' or DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback0") | ip }}/128 route-map HIDE_INTERNAL
{% endif %}
{% endif %}
exit-address-family
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ router bgp 55555
!
address-family ipv6
network fc00::1/64
network fc00::1/128 route-map HIDE_INTERNAL
exit-address-family
!
network 10.10.10.1/24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ router bgp 55555
!
address-family ipv6
network fc00::1/64
network fc00::1/128 route-map HIDE_INTERNAL
exit-address-family
address-family ipv6
network fc00::2/128 route-map HIDE_INTERNAL
Expand Down

0 comments on commit 15a39ac

Please sign in to comment.