forked from sonic-net/sonic-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202305] Enhanced route_check.py for multi_asic platforms (sonic-net#…
…3112) What I did Cherry pick of PR sonic-net#3077 MSFT ADO: 25416673 How I did it Enhanced the route_check.py script to take additional optional parameter(--n/namespace). Without this parameter, the check will be run on all asics in multi-asic platforms. Different connections to DBs are modified accordingly to connect to relevant ns dbs. Result will be encapsulated under different namespace. For single asic, results will be displayed under Default-Namespace(""). testData and the testfiles are enhanced accordinly. How to verify it Verified that all pytest UT cases are passing. Verified the route_check_test.sh script on single asic and multi-asic platforms. Verified Monit routecheck outputs by simulating a failure scenario on both single asic and multi-asic platforms. output from Monit Check: Single Asic: xxx/usr/local/bin# monit status routecheck Monit 5.20.0 uptime: 1d 20h 32m Program 'routeCheck' status Status failed monitoring status Monitored monitoring mode active on reboot start last exit value 255 last output Failure results: {{ "": { "missed_ROUTE_TABLE_routes": [ "20c0:d9b8:99:80::/64" ] } }} Failed. Look at reported mismatches above add: { "": [] } del: { "": [] } data collected Tue, 12 Dec 2023 20:30:11 ''' Multi Asic: ''' /bin# monit status routecheck Monit 5.20.0 uptime: 1d 23h 51m Program 'routeCheck' status Status failed monitoring status Monitored monitoring mode active on reboot start last exit value 255 last output Failure results: {{ "asic0": { "missed_ROUTE_TABLE_routes": [ "1.0.0.0/16" ] }, "asic1": { "missed_ROUTE_TABLE_routes": [ "1.0.0.0/16" ] }, "asic2": { "missed_ROUTE_TABLE_routes": [ "1.0.0.0/16" ] } }} Failed. Look at reported mismatches above add: { "asic0": [], "asic1": [], "asic2": [] } del: { "asic0": [], "asic1": [], "asic2": [] } data collected Tue, 12 Dec 2023 23:54:23
- Loading branch information
1 parent
83a548d
commit c5e30e3
Showing
4 changed files
with
831 additions
and
483 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
Oops, something went wrong.