Skip to content

Commit 675b97c

Browse files
arlakshmCarl Keene
authored and
Carl Keene
committed
[multi-asic] fix network command for internal loopback (sonic-net#7878)
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]> In the multi asic platforms all the ASIC are advertising the same IPv6 /64 network from Loopback4096. Therefore, the IPv6 loopback address of backend asic is not learnt on the frontend asic. Change the bgpd.conf.main.conf.j2 template file to advertise the Loopback4096 ipv6 address as /128
1 parent 43f3447 commit 675b97c

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
8080
{% if multi_asic is defined %}
8181
{% if get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback4096") != 'None' %}
8282
address-family ipv6
83-
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback4096") | ip }}/64 route-map HIDE_INTERNAL
83+
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback4096") | ip }}/128 route-map HIDE_INTERNAL
8484
exit-address-family
8585
{% endif %}
8686
{% endif %}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ router bgp 55555
6161
network fc00::1/64
6262
exit-address-family
6363
address-family ipv6
64-
network fc00::2/64 route-map HIDE_INTERNAL
64+
network fc00::2/128 route-map HIDE_INTERNAL
6565
exit-address-family
6666
!
6767
network 10.10.10.1/24

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ router bgp 55555
4040
network fc00::1/64
4141
exit-address-family
4242
address-family ipv6
43-
network fc00::2/64 route-map HIDE_INTERNAL
43+
network fc00::2/128 route-map HIDE_INTERNAL
4444
exit-address-family
4545
!
4646
network 10.10.10.1/24

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ router bgp 55555
4040
network fc00::1/64
4141
exit-address-family
4242
address-family ipv6
43-
network fc00::2/64 route-map HIDE_INTERNAL
43+
network fc00::2/128 route-map HIDE_INTERNAL
4444
exit-address-family
4545
!
4646
network 10.10.10.1/24

src/sonic-bgpcfgd/tests/data/sonic-cfggen/frr.conf.j2/all.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ router bgp 55555
8080
network fc00::1/64
8181
exit-address-family
8282
address-family ipv6
83-
network fc00::2/64 route-map HIDE_INTERNAL
83+
network fc00::2/128 route-map HIDE_INTERNAL
8484
exit-address-family
8585
!
8686
network 10.10.10.1/24

src/sonic-config-engine/tests/sample_output/py2/bgpd_frr_backend_asic.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ router bgp 65100
5959
network fc00:1::32/64
6060
exit-address-family
6161
address-family ipv6
62-
network fd00:4::32/64 route-map HIDE_INTERNAL
62+
network fd00:4::32/128 route-map HIDE_INTERNAL
6363
exit-address-family
6464
!
6565
!

src/sonic-config-engine/tests/sample_output/py2/bgpd_frr_frontend_asic.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ router bgp 65100
5959
network fc00:1::32/64
6060
exit-address-family
6161
address-family ipv6
62-
network fd00:1::32/64 route-map HIDE_INTERNAL
62+
network fd00:1::32/128 route-map HIDE_INTERNAL
6363
exit-address-family
6464
!
6565
!

src/sonic-config-engine/tests/sample_output/py3/bgpd_frr_backend_asic.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ router bgp 65100
5959
network fc00:1::32/64
6060
exit-address-family
6161
address-family ipv6
62-
network fd00:4::32/64 route-map HIDE_INTERNAL
62+
network fd00:4::32/128 route-map HIDE_INTERNAL
6363
exit-address-family
6464
!
6565
!

src/sonic-config-engine/tests/sample_output/py3/bgpd_frr_frontend_asic.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ router bgp 65100
5959
network fc00:1::32/64
6060
exit-address-family
6161
address-family ipv6
62-
network fd00:1::32/64 route-map HIDE_INTERNAL
62+
network fd00:1::32/128 route-map HIDE_INTERNAL
6363
exit-address-family
6464
!
6565
!

0 commit comments

Comments
 (0)