-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from abdosi/202205
[msft-202205] Added support of isolating given LC in Chassis with TSA mode Cherry-pick of PR: #16732
- Loading branch information
Showing
13 changed files
with
173 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
{%- if internal_route_map == '1' -%} | ||
route-map {{ route_map_name }} permit 20 | ||
set community no-export additive | ||
{# #} | ||
{%- else -%} | ||
route-map {{ route_map_name }} permit 20 | ||
match {{ ip_protocol }} address prefix-list PL_Loopback{{ ip_version }} | ||
set community {{ constants.bgp.traffic_shift_community }} | ||
route-map {{ route_map_name }} permit 30 | ||
match tag {{ constants.bgp.internal_community_match_tag }} | ||
set community {{ constants.bgp.traffic_shift_community }} | ||
route-map {{ route_map_name }} deny 40 | ||
{# #} | ||
{%- endif -%} | ||
! |
6 changes: 6 additions & 0 deletions
6
dockers/docker-fpm-frr/frr/bgpd/tsa/bgpd.tsa.unisolate.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{%- if internal_route_map == '1' -%} | ||
no route-map {{ route_map_name }} permit 20 | ||
{# #} | ||
{%- else -%} | ||
no route-map {{ route_map_name }} permit 20 | ||
no route-map {{ route_map_name }} permit 30 | ||
no route-map {{ route_map_name }} deny 40 | ||
{# #} | ||
{%- endif -%} | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/sonic-bgpcfgd/tests/data/internal/peer-group.conf/result_chassis_packet_isolate.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
! | ||
! template: bgpd/templates/internal/peer-group.conf.j2 | ||
! | ||
neighbor INTERNAL_PEER_V4 peer-group | ||
neighbor INTERNAL_PEER_V6 peer-group | ||
neighbor INTERNAL_PEER_V4 update-source Loopback4096 | ||
address-family ipv4 | ||
neighbor INTERNAL_PEER_V4 soft-reconfiguration inbound | ||
neighbor INTERNAL_PEER_V4 allowas-in 1 | ||
neighbor INTERNAL_PEER_V4 route-map FROM_BGP_INTERNAL_PEER_V4 in | ||
neighbor INTERNAL_PEER_V4 route-map TO_BGP_INTERNAL_PEER_V4 out | ||
neighbor INTERNAL_PEER_V4 send-community | ||
neighbor INTERNAL_PEER_V4 ttl-security hops 1 | ||
exit-address-family | ||
neighbor INTERNAL_PEER_V6 update-source Loopback4096 | ||
address-family ipv6 | ||
neighbor INTERNAL_PEER_V6 soft-reconfiguration inbound | ||
neighbor INTERNAL_PEER_V6 allowas-in 1 | ||
neighbor INTERNAL_PEER_V6 route-map FROM_BGP_INTERNAL_PEER_V6 in | ||
neighbor INTERNAL_PEER_V6 route-map TO_BGP_INTERNAL_PEER_V6 out | ||
neighbor INTERNAL_PEER_V6 send-community | ||
neighbor INTERNAL_PEER_V6 ttl-security hops 1 | ||
exit-address-family | ||
! | ||
! end of template: bgpd/templates/internal/peer-group.conf.j2 | ||
! | ||
|
||
|
||
route-map TO_BGP_INTERNAL_PEER_V4 permit 20 | ||
set community no-export additive | ||
! | ||
route-map TO_BGP_INTERNAL_PEER_V6 permit 20 | ||
set community no-export additive | ||
! | ||
|
33 changes: 33 additions & 0 deletions
33
src/sonic-bgpcfgd/tests/data/internal/peer-group.conf/result_chassis_packet_unisolate.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
! | ||
! template: bgpd/templates/internal/peer-group.conf.j2 | ||
! | ||
neighbor INTERNAL_PEER_V4 peer-group | ||
neighbor INTERNAL_PEER_V6 peer-group | ||
neighbor INTERNAL_PEER_V4 update-source Loopback4096 | ||
address-family ipv4 | ||
neighbor INTERNAL_PEER_V4 soft-reconfiguration inbound | ||
neighbor INTERNAL_PEER_V4 allowas-in 1 | ||
neighbor INTERNAL_PEER_V4 route-map FROM_BGP_INTERNAL_PEER_V4 in | ||
neighbor INTERNAL_PEER_V4 route-map TO_BGP_INTERNAL_PEER_V4 out | ||
neighbor INTERNAL_PEER_V4 send-community | ||
neighbor INTERNAL_PEER_V4 ttl-security hops 1 | ||
exit-address-family | ||
neighbor INTERNAL_PEER_V6 update-source Loopback4096 | ||
address-family ipv6 | ||
neighbor INTERNAL_PEER_V6 soft-reconfiguration inbound | ||
neighbor INTERNAL_PEER_V6 allowas-in 1 | ||
neighbor INTERNAL_PEER_V6 route-map FROM_BGP_INTERNAL_PEER_V6 in | ||
neighbor INTERNAL_PEER_V6 route-map TO_BGP_INTERNAL_PEER_V6 out | ||
neighbor INTERNAL_PEER_V6 send-community | ||
neighbor INTERNAL_PEER_V6 ttl-security hops 1 | ||
exit-address-family | ||
! | ||
! end of template: bgpd/templates/internal/peer-group.conf.j2 | ||
! | ||
|
||
|
||
no route-map TO_BGP_INTERNAL_PEER_V4 permit 20 | ||
! | ||
no route-map TO_BGP_INTERNAL_PEER_V6 permit 20 | ||
! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters