[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
9d18a35e35
commit
ef67ba5f6e
@ -80,7 +80,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 %}
|
||||
|
@ -61,7 +61,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
|
||||
|
@ -40,7 +40,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
|
||||
|
@ -40,7 +40,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
|
||||
|
@ -80,7 +80,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
|
||||
|
@ -59,7 +59,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
|
||||
!
|
||||
!
|
||||
|
@ -59,7 +59,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
|
||||
!
|
||||
!
|
||||
|
@ -59,7 +59,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
|
||||
!
|
||||
!
|
||||
|
@ -59,7 +59,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