Skip to content

[msft-202205] Added support of isolating given LC in Chassis with TSA mode#209

Merged
abdosi merged 1 commit intoAzure:202205from
abdosi:202205
Jan 5, 2024
Merged

[msft-202205] Added support of isolating given LC in Chassis with TSA mode#209
abdosi merged 1 commit intoAzure:202205from
abdosi:202205

Conversation

@abdosi
Copy link
Contributor

@abdosi abdosi commented Jan 5, 2024

What I did:
Cherry-pick of PR: sonic-net/sonic-buildimage#16732

…e (#16732)

What I did:
Added support when TSA is done on Line Card make sure it's completely
isolated from all e-BGP peer devices from this LC or remote LC

Why I did:
Currently when TSA is executed on LC routes are withdrawn from it's connected e-BGP peers only. e-BGP peers on remote LC can/will (via i-BGP) still have route pointing/attracting traffic towards this isolated LC.

How I did:

When TSA is applied on LC all the routes that are advertised via i-BGP are set with community tag of no-export so that when remote LC received these routes it does not send over to it's connected e-BGP peers.

Also once we receive the route with no-export  over iBGP match on it and and set the local preference of that route to lower value (80) so that we remove that route from the forwarding database. Below scenario explains why we do this:

- LC1 advertise R1 to LC3
- LC2 advertise R1 to LC3
- On LC3 we have multi-path/ECMP over both LC1 and LC2
- On LC3 R1 received from LC1 is consider best route over R1 over received from LC2 and is send to LC3 e-BGP peers
- Now we do TSA on LC2
- LC3 will receive R1 from LC2 with community no-export and from LC1 same as earlier (no change)
- LC3 will still get traffic for R1 since it is still advertised to e-BGP peers (since R1 from LC1 is best route)
- LC3 will forward to both LC1 and LC2 (ecmp) and this causes issue as LC2 is in TSA mode and should not receive traffic

To fix above scenario we change the preference to lower value of R1 received from LC2 so that it is removed from Multi-path/ECMP group.

How I verfiy:

UT has been added to make sure Template generation is correct
Manual Verification of the functionality
sonic-mgmt test case will be updated accordingly.
Please note this PR is on top of this :#16714 which needs to be merged first.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi abdosi merged commit 9803929 into Azure:202205 Jan 5, 2024
@abdosi abdosi deleted the 202205 branch January 5, 2024 20:59
mssonicbld added a commit to mssonicbld/sonic-buildimage-msft that referenced this pull request Apr 6, 2024
…lly (#18574)

#### Why I did it
src/sonic-gnmi
```
* 4b12af9 - (HEAD -> 202305, origin/202305) Merge pull request Azure#209 from zbud-msft/revert_pfcwd_202305 (2 minutes ago) [StormLiangMS]
* 802dbb7 - Revert "Replace PFC_WD_TABLE with PFC_WD (Azure#173)" (28 hours ago) [Zain Budhwani]
* e1397c4 - Revert "Account for GLOBAL key in PFC_WD (Azure#178)" (28 hours ago) [Zain Budhwani]
```
#### How I did it
#### How to verify it
#### Description for the changelog
@abdosi abdosi restored the 202205 branch July 12, 2024 19:10
prabhataravind pushed a commit that referenced this pull request Jul 7, 2025
…utomatically (#21565)

#### Why I did it
src/sonic-host-services
```
* 69788c2 - (HEAD -> master, origin/master, origin/HEAD) Fix: Set default values for kdump enhancement (#217) (3 days ago) [Muhammad Ali Hussnain]
* d7e8021 - [chassis] make multi_asic_ns_to_host_fwd False for EXTERNAL_CLIENT acl service (#218) (4 days ago) [Arvindsrinivasan Lakshmi Narasimhan]
* d925457 - Fix sudo command failed because root user password expired by password hardening feature issue (#215) (4 days ago) [Hua Liu]
* 7e1b280 - reverted ssh_key to ssh_string (#216) (6 days ago) [Muhammad Ali Hussnain]
* 741a9df - Handle NotImplementedError in determine-reboot-cause that will be thrown on VS Chassis platform (#211) (7 days ago) [Changrong Wu]
* 47f6feb - check sonic-installer message and return proper error code for when image doesn't exist. (#210) (7 days ago) [Dawei Huang]
* 1fe9a76 - Updated Key and Path (#209) (7 days ago) [Muhammad Ali Hussnain]
* bb0a31c - Adding support for persistent storage and retrieval of DPU reboot-cause (#169) (8 days ago) [rameshraghupathy]
* 5e08927 - [hostcfgd] Fix the state machine during eth0 default route check failure (#196) (2 weeks ago) [Vivek]
* d2cc1a8 - Add ImageService.set_next_boot for GNOI Activate OS. (#207) (3 weeks ago) [Dawei Huang]
* 9c49913 - register image_service and docker_service. (#208) (3 weeks ago) [Dawei Huang]
* d88d8d0 - Implementation for ImageService.List (#206) (4 weeks ago) [Dawei Huang]
* d7e4df5 - Enabled configuring the default number of kdumps in Linux. (#202) (4 weeks ago) [Mridul Bajpai]
* ca9d329 - kdump-remote feature in hostcfgd (#166) (4 weeks ago) [Muhammad Ali Hussnain]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mssonicbld added a commit that referenced this pull request Aug 2, 2025
…AD automatically (#1428)

#### Why I did it
src/sonic-utilities
```
* 2b21b49f - (HEAD -> 202506, origin/202506) Merge pull request #209 from mssonicbld/sonicbld/202506-merge (14 hours ago) [mssonicbld]
* e636b6f7 - Merge branch '202505' of https://github.com/sonic-net/sonic-utilities into 202506 (14 hours ago) [Sonic Automation]
* a7e44265 - [202505] fix show bgp cli on multiple asic device (#4005) (2 days ago) [Liping Xu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
r12f pushed a commit that referenced this pull request Mar 2, 2026
…tomatically (#2025)

#### Why I did it
src/sonic-swss
```
* 9357b81a - (HEAD -> 202412, origin/202412) [202412]Avoid creating tunnel with SRv6 (#209) (60 minutes ago) [Sudharsan Dhamal Gopalarathnam]
```
#### How I did it
#### How to verify it
#### Description for the changelog

Signed-off-by: Sonic Automation <sonicbld@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants