[multi-asic] fix network command for internal loopback (#7878)
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com> 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
This commit is contained in:
parent
17a8f42704
commit
14bbccc9d6
@ -81,7 +81,7 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
|
||||
{% if multi_asic is defined %}
|
||||
{% if get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback4096") != 'None' %}
|
||||
address-family ipv6
|
||||
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback4096") | ip }}/64 route-map HIDE_INTERNAL
|
||||
network {{ get_ipv6_loopback_address(LOOPBACK_INTERFACE, "Loopback4096") | ip }}/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@ -62,7 +62,7 @@ router bgp 55555
|
||||
network fc00::1/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fc00::2/64 route-map HIDE_INTERNAL
|
||||
network fc00::2/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
network 10.10.10.1/24
|
||||
|
@ -41,7 +41,7 @@ router bgp 55555
|
||||
network fc00::1/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fc00::2/64 route-map HIDE_INTERNAL
|
||||
network fc00::2/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
network 10.10.10.1/24
|
||||
|
@ -41,7 +41,7 @@ router bgp 55555
|
||||
network fc00::1/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fc00::2/64 route-map HIDE_INTERNAL
|
||||
network fc00::2/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
network 10.10.10.1/24
|
||||
|
@ -77,7 +77,7 @@ router bgp 55555
|
||||
network fc00::1/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fc00::2/64 route-map HIDE_INTERNAL
|
||||
network fc00::2/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
network 10.10.10.1/24
|
||||
|
@ -60,7 +60,7 @@ router bgp 65100
|
||||
network fc00:1::32/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fd00:4::32/64 route-map HIDE_INTERNAL
|
||||
network fd00:4::32/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
!
|
||||
|
@ -60,7 +60,7 @@ router bgp 65100
|
||||
network fc00:1::32/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fd00:1::32/64 route-map HIDE_INTERNAL
|
||||
network fd00:1::32/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
!
|
||||
|
@ -60,7 +60,7 @@ router bgp 65100
|
||||
network fc00:1::32/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fd00:4::32/64 route-map HIDE_INTERNAL
|
||||
network fd00:4::32/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
!
|
||||
|
@ -60,7 +60,7 @@ router bgp 65100
|
||||
network fc00:1::32/64
|
||||
exit-address-family
|
||||
address-family ipv6
|
||||
network fd00:1::32/64 route-map HIDE_INTERNAL
|
||||
network fd00:1::32/128 route-map HIDE_INTERNAL
|
||||
exit-address-family
|
||||
!
|
||||
!
|
||||
|
Loading…
Reference in New Issue
Block a user