Skip to content

Cherry-pick from master#1433

Merged
abdosi merged 2 commits intosonic-net:201911from
renukamanavalan:rt_chk
Feb 18, 2021
Merged

Cherry-pick from master#1433
abdosi merged 2 commits intosonic-net:201911from
renukamanavalan:rt_chk

Conversation

@renukamanavalan
Copy link
Contributor

PR #1337 & #1344

lguohan and others added 2 commits February 12, 2021 17:31
…t#1337)

orchagent ignore all routes pointing to Loopback interfaces.
add this skip logic in route check.

sonic-net/sonic-swss#1570

Signed-off-by: Guohan Lu <lguohan@gmail.com>
…#1344)

Summary: Improve the tool to handle the possible latency between APPL-DB & ASIC-DB by looking at subscription messages.

- What I did
The routes flow from APPL-DB to ASIC-DB, via orchagent.
This tool's job is to verify that all routes added to APPL-DB do
get into ASIC-DB and all routes removed from APPL-DB are deleted from ASIC-DB.

- How I did it
NOTE: The flow from APPL-DB to ASIC-DB takes non zero milliseconds.
1) Initiate subscribe for ASIC-DB updates.
2) Read APPL-DB & ASIC-DB
3) Get the diff.
4) If any diff,
4.1) Collect subscribe messages for a second
4.2) check diff against the subscribe messages
5) Rule out local interfaces & default routes
6) If still outstanding diffs, report failure.

- How to verify it
Run this tool in SONiC switch and watch the result. In case of failure
checkout the result to validate the failure.
To simulate failure:
Stop Orchagent.
Run this tool, and likely you would see some failures.
You could potentially remove / add routes in APPL / ASIC DBs with orchagent
down to ensure failure.
Analyze the reported failures to match expected.
You may use the exit code to verify the result as success or not.
@renukamanavalan renukamanavalan self-assigned this Feb 12, 2021
@abdosi abdosi merged commit 02438f9 into sonic-net:201911 Feb 18, 2021
@rlhui
Copy link
Contributor

rlhui commented Feb 19, 2021

@renukamanavalan - the title should reflect the change description. And this is not a git cherry-pick, but a direct PR for 201911 branch.

stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
Avoid adding loopback interface (ip link add) when setting nat zone on
loopback interface (sonic-net#1434)
    [acl] Remove Ethertype from L3V6 qualifiers (sonic-net#1433)
    Sflow fixes during DEL processing (sonic-net#1427)
    Fix sonic-net#3971 by skipping create-only SAI attributes when modifying
    buffer pools or profiles in orchagent (sonic-net#1430)
    Fix issue: bufferorch only pass the first attribute to sai when
    setting attribute (sonic-net#1442)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
02438f9 (HEAD -> 201911, origin/201911) Cherry-pick Master PR for route-checker tool (sonic-net#1433)
e54fb69 [201911][vnet] Add "vnet_route_check" script (sonic-net#1443)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@renukamanavalan renukamanavalan deleted the rt_chk branch September 16, 2022 17:39
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.

4 participants