Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the test command for test_ssdhealth in show_test.py #32

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
321 commits
Select commit Hold shift + click to select a range
556d0c6
[doc] Add docs for dhcp_relay show/clear cli (#2649)
yaqiangz Feb 14, 2023
36824e4
Add support of secure warm-boot (#2532)
davidpil2002 Feb 14, 2023
33e85d3
[dhcp_relay] Remove add field of vlanid to DHCP_RELAY table while add…
yaqiangz Feb 15, 2023
54e2635
Replace pickle by json (#2636)
maipbui Feb 24, 2023
eda4e91
[show][muxcable] add some new commands health, reset-cause, queue_inf…
vdahiya12 Feb 24, 2023
e98011f
Revert "Secure upgrade (#2337)" (#2675)
StormLiangMS Feb 27, 2023
6f84aae
Add begin logs to config reload/config minigraph/warm-reboot/fast-reb…
Junchao-Mellanox Feb 27, 2023
b817342
[GCU] Add Sample Unit Test for RDMA Headroom Pool Size Tuning (#2692)
isabelmsft Feb 28, 2023
2680e6f
[dhcp_relay] Fix dhcp_relay restart error while add/del vlan (#2688)
yaqiangz Mar 1, 2023
cd519aa
[ci] Fix pipeline issue caused by sonic-slave-* change. (#2709)
liushilongbuaa Mar 2, 2023
a015834
[db_migrator] Add missing attribute 'weight' to route entries in APPL…
vaibhavhd Mar 3, 2023
c2bc150
[warm/fast-reboot] Backup logs from tmpfs to disk during fast/warm sh…
vaibhavhd Mar 6, 2023
90d7015
[route_check] implement a check for FRR routes not marked offloaded (…
stepanblyschak Mar 7, 2023
e16bdaa
Fix non-zero status exit on non secure boot system (#2715)
kellyyeh Mar 7, 2023
2fc2b82
YANG validation for ConfigDB Updates: MIRROR_SESSION use case (#2430)
isabelmsft Mar 7, 2023
c7aa841
[show][muxcable] increase timeout for displaying HW_STATUS (#2712)
vdahiya12 Mar 7, 2023
2ef5b31
[GCU] Add PFC_WD RDMA validator (#2619)
isabelmsft Mar 8, 2023
64d2efd
Improve show acl commands (#2667)
bingwang-ms Mar 8, 2023
338d1c0
Check SONiC dependencies before installation. (#2716)
liushilongbuaa Mar 8, 2023
9f83ace
[GCU] Add vlanintf-validator (#2697)
wen587 Mar 9, 2023
7a604c5
update fast-reboot (#2728)
jhli-cisco Mar 9, 2023
ff68832
[route_check] fix IPv6 address handling (#2722)
stepanblyschak Mar 10, 2023
e6179af
Remove timer from FAST_REBOOT STATE_DB entry and use finalizer (#2621)
arfeigin Mar 10, 2023
f7f783b
Enhance the logic to wait for all buffer tables to be removed in _cle…
stephenxs Mar 14, 2023
7645714
Fix fast-reboot DB migration (#2734)
arfeigin Mar 14, 2023
c869c97
Update the ref guide to reflect the vlan brief output (#2731)
vivekrnv Mar 15, 2023
2d95529
Revert "Update load minigraph to load backend acl (#2236)" (#2735)
neethajohn Mar 17, 2023
f27dea0
[route_check] remove check-frr_patch mock (#2732)
stepanblyschak Mar 17, 2023
05fa751
Fix the `show interface counters` throwing exception on device with n…
abdosi Mar 17, 2023
10f31ea
Revert "Replace pickle by json (#2636)" (#2746)
maipbui Mar 21, 2023
824680e
Resolved rc!=0 problem by replacing fgrep with awk. Added ipv4 filter…
saurabh17g Mar 27, 2023
79a21ce
Revert frr route check (#2761)
StormLiangMS Mar 28, 2023
53f611b
Revert "Convert IPv6 addresses to lowercase in apply-patch (#2299)" (…
wen587 Mar 28, 2023
832ef9c
Fix bug in GCU vlanintf_validator (#2765)
wen587 Mar 29, 2023
e6f9f46
[GCU] Performance improvement by making patch sorting optional (#2764)
isabelmsft Mar 31, 2023
eaf4667
[voq] Add fabric_ns to the ns_list when display_option is DISPLAY_ALL…
jfeng-arista Apr 3, 2023
dbb2149
[ci] Switch to using regular swss-common artifacts (#2780)
saiarcot895 Apr 4, 2023
1802f34
[sfputil] replace shell=True (#2727)
maipbui Apr 6, 2023
eab5466
YANG Validation for MCLAG, NAT, MUXCABLE tables (#2755)
isabelmsft Apr 6, 2023
d1cb915
Use sonic-swss-common artifacts from the matching source branch (#2783)
saiarcot895 Apr 6, 2023
adeac25
fix radius error on unicode name error due to python3 (#2751)
dbarashinvd Apr 7, 2023
882da01
[DBMigrator] Update db_migrator to support EdgeZoneAggregator Buffer …
developfast Apr 7, 2023
ff032fe
[debug/undebug] replace shell=True (#2662)
maipbui Apr 10, 2023
04d0b34
[voq][chassis][generate_dump] [BCM] Dump only the relevant BCM comman…
saksarav-nokia Apr 10, 2023
a1057b2
[config reload]Config Reload Enhancement (#2693)
dgsudharsan Apr 11, 2023
1468f4a
Support to display the SONiC OS Version in the command show version (…
xumia Apr 12, 2023
ba28df3
Remove the no use new line in show version (#2792)
xumia Apr 13, 2023
d17d124
[aclshow][user-manual] Add the aclshow utility description to the Use…
vadymhlushko-mlnx Apr 13, 2023
d433b2f
[fast-reboot] set teamd timer to minimum, preserve connected routes (…
arfeigin Apr 18, 2023
f5d9e6c
[config] replace shell=True and replace exit() by sys.exit() (#2658)
maipbui Apr 19, 2023
29c7e8b
[clear] Replace shell=True, replace exit() by sys.exit() (#2657)
maipbui Apr 19, 2023
7d2ca0b
[fwutil] replace shell=True (#2663)
maipbui Apr 19, 2023
b547bb4
[acl-loader] Only add default deny rule when table is L3 or L3V6 (#2796)
lizhijianrd Apr 20, 2023
5e99edb
[sonic_package_manager] replace shell=True (#2726)
maipbui Apr 20, 2023
88a7daa
[show][barefoot] replace shell=True (#2699)
maipbui Apr 20, 2023
ada603c
[config]Support multi-asic Golden Config override (#2738)
wen587 Apr 20, 2023
bee593e
[DPB]Fixing typo in config breakout output (#2802)
dgsudharsan Apr 20, 2023
7e24463
[chassis]: remote cli commands infra for sonic chassis (#2701)
arlakshm Apr 21, 2023
b38fcfd
[show][muxcable] fix `show mux hwmode muxdirection` RC (#2812)
zjswhhh Apr 28, 2023
522c3a9
[sonic-package-manager] add support for multiple CLI plugin files (#2…
stepanblyschak Apr 30, 2023
7443b9e
[sonic-package-manager] support extension with multiple YANG modules …
stepanblyschak Apr 30, 2023
88ffb16
[config]config reload should generate sysinfo if missing (#2778)
wen587 May 1, 2023
d4355a9
Change default CDB run mode to non-hitless (#2817)
mihirpat1 May 3, 2023
61e0e81
Added platform plugin support in load_minigraph (#2808)
anamehra May 3, 2023
ce81a34
Revert "[config]Support multi-asic Golden Config override (#2738)" (…
wen587 May 4, 2023
d1f307d
[GCU]Fix rdma check failure (#2824)
wen587 May 4, 2023
331c9de
[config]: Dynamically start and stop ndppd (#2814)
theasianpianist May 4, 2023
634ac77
LAG keepalive script to reduce lacp session wait during warm-reboot (…
vaibhavhd May 4, 2023
589375f
correctly parsing complete ipv6 vnet info (#2827)
yenlu-keith May 4, 2023
1097373
[show] Added alias interface mode support for 'show interfaces counte…
puffc May 5, 2023
71ef4f1
[build] Fix base OS compilation issue caused by incompatibility with …
oleksandrivantsiv May 8, 2023
a5091bb
[sonic_sku_create] remove shell=True, replace exit() with sys.exit() …
maipbui May 9, 2023
2ffe6e3
[show][mlnx] replace shell=True, replace xml (#2700)
maipbui May 10, 2023
3fb3258
Revert "[chassis]: remote cli commands infra for sonic chassis (#2701…
arlakshm May 10, 2023
3a9995b
[config]Support multi-asic Golden Config override with fix (#2825)
wen587 May 11, 2023
1e73632
[test]: add UT coverage for GCU (#2818)
isabelmsft May 13, 2023
aeb0dbc
Fix the invalid variable issue when set-fips in uboot (#2834)
xumia May 13, 2023
9e510a8
[chassis][voq[Add "config fabric port ..." commands and tests. (#2730)
jfeng-arista May 15, 2023
33d665c
replace shell=True, replace xml, and replace exit() (#2664)
maipbui May 15, 2023
e6aacd3
Update TRANSCEIVER_INFO table after CDB FW upgrade (#2837)
mihirpat1 May 17, 2023
3d89589
Update pcieutil error message on loading common pcie module (#2786)
cytsao1 May 20, 2023
b4f4e63
Revert "Revert frr route check (#2761)" (#2762)
stepanblyschak May 23, 2023
f258e2a
[GCU] Complete RDMA Platform Validation Checks (#2791)
isabelmsft May 24, 2023
d5544b4
[config] Generate sysinfo as needed when override config (#2836)
wen587 May 25, 2023
db61efc
[vlan][dhcp_relay] Clear dhcpv6 relay counter while deleting vlan (#2…
yaqiangz May 29, 2023
4fead89
[sonic-package-manager] fix CLI plugin compatibility issue (#2842)
stepanblyschak May 29, 2023
69abbc3
Revert "[GCU] Complete RDMA Platform Validation Checks (#2791)" (#2854)
StormLiangMS May 30, 2023
b5c1032
[db-migrator] Fix hwsku match for 6100 and add errors when hwsku is N…
vaibhavhd May 30, 2023
b2c29b0
[config] Generate sysinfo in single asic (#2856)
wen587 May 31, 2023
6e0ee3e
[CRM][DASH] Extend CRM utility to support DASH resources. (#2800)
oleksandrivantsiv May 31, 2023
5750057
[utilities_common] replace shell=True (#2718)
maipbui May 31, 2023
a66f41c
[show] replace shell=True, replace xml by lxml, replace exit by sys.e…
maipbui May 31, 2023
dc59dbd
Replace pickle by json (#2849)
maipbui May 31, 2023
b316fc2
Add transceiver status CLI to show output from TRANSCEIVER_STATUS tab…
longhuan-cisco Jun 1, 2023
359dfc0
[Clock] Implement clock CLI (#2793)
fastiuk Jun 2, 2023
72ca484
Add CLI configuration options for teamd retry count feature (#2642)
saiarcot895 Jun 2, 2023
5c9b217
Fix issue: out of range sflow polling interval is accepted and stored…
Junchao-Mellanox Jun 5, 2023
7d803ae
Revert "[config]config reload should generate sysinfo if missing (#27…
wen587 Jun 5, 2023
1c1e22d
[acl-loader] Support for ACL table type L3V4V6 (#2794)
rck-innovium Jun 5, 2023
0fc9e71
[chassis]: remote cli commands infra for sonic chassis (#2850)
arlakshm Jun 6, 2023
51c46b5
[sonic_installer] remove subprocess with shell=True (#2643)
maipbui Jun 7, 2023
56b6ac2
[consutil] replace shell=True (#2725)
maipbui Jun 7, 2023
252c083
Add display support for serial field in show chassis modules status C…
amulyan7 Jun 7, 2023
788db8c
[GCU] Complete RDMA Platform Validator PR (#2857)
isabelmsft Jun 8, 2023
0f67ab7
remove docker-sonic-vs directory (#2868)
maipbui Jun 9, 2023
dbcaaf8
[dhcp-relay] Fix dhcp6relay counter issue (#2866)
yaqiangz Jun 12, 2023
de49179
fix precedence in portstat CLI (#2874)
wenyiz2021 Jun 13, 2023
f186376
Fix issue: show interfaces transceiver eeprom -d should display same …
Junchao-Mellanox Jun 14, 2023
46fba26
[db_migrator] add required "protocol" field in ROUTE_TABLE (#2766)
stepanblyschak Jun 14, 2023
659ba24
[syslog] Adjust runningconfiguration syslog command (#2843)
fastiuk Jun 14, 2023
fceef2e
[chassis][voq] Clear fabric counters queue/port (#2789)
jfeng-arista Jun 15, 2023
3ba8241
[db_migtrator] Add migration of FLEX_COUNTER_DELAY_STATUS during 1911…
vadymhlushko-mlnx Jun 15, 2023
0b629ba
Revert "[chassis][voq] Clear fabric counters queue/port (#2789)" (#2882)
MuhammadUmarAsad Jun 16, 2023
8414a70
[chassis][multi asic] change acl_loader to use tcp socket for db comm…
arlakshm Jun 23, 2023
dc2945b
[dns] Implement config and show commands for static DNS. (#2737)
oleksandrivantsiv Jun 25, 2023
316b14c
Add support for secure upgrade (#2698)
ycoheNvidia Jun 26, 2023
b1aa942
[generate_dump]: Enhance show techsupport for Marvell platform (#2676)
pavannaregundi Jun 29, 2023
7bc08c2
[db_migrator] Remove hardcoded config and migrate config from minigra…
vaibhavhd Jun 29, 2023
73d8d63
[doc] Update Command-Reference.md, change "show bgp peer" command to …
PinghaoQu Jun 30, 2023
6b8ee47
[CLI][Show][BGP] Show BGP Change for no neighbor scenario (#2885)
developfast Jul 4, 2023
61bad06
[db_migrator] Set correct CURRENT_VERSION, extend UT (#2895)
vadymhlushko-mlnx Jul 6, 2023
ff380e0
[hash]: Implement GH frontend (#2580)
nazariig Jul 10, 2023
7ca3147
[db_migrator] Set docker_routing_config_mode to the value obtained fr…
vaibhavhd Jul 11, 2023
553a343
[dualtor][route_check] filter out `soc_ipv6` (#2899)
zjswhhh Jul 12, 2023
1ee7366
[db_migrator] Migrate DNS configuratuion (#2893)
ganglyu Jul 12, 2023
81c0ed4
[show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as …
zjswhhh Jul 12, 2023
fd49775
[route_check][dualtor] Ignore vlan neighbor route miss (#2888)
lolyu Jul 13, 2023
51c7a43
[show][muxcable] update `show mux config` to print out `soc_ipv6` as …
zjswhhh Jul 13, 2023
b617d97
[dualtor] Add script to verify consistency between kernel and ASIC (…
lolyu Jul 14, 2023
c301f3b
[Techsupport] Update the message seen during the lock acquisition fai…
vivekrnv Jul 16, 2023
489a0c9
Flush RESTAPI db in fast-reboot shutdown path (#2917)
bingwang-ms Jul 19, 2023
feea95e
UT change: for db_migrator test do not check for RESTAPI cert values …
vaibhavhd Jul 20, 2023
42cba90
Fixed db_migrator version 4_0_3 and 4_0_4 and added missing log info …
MuhammadUmarAsad Jul 20, 2023
e49fd91
[GCU] Update RDMA Platform Validator (#2913)
isabelmsft Jul 20, 2023
6716bcf
[multi-asic] Refine [override config table] for corner cases (#2918)
wenyiz2021 Jul 20, 2023
44c1108
Several fixes and updates for ecnconfig (#2889)
rbpittman Jul 25, 2023
4b547ef
[build] Fix dependency issue between responses and urllib3 package. (…
liushilongbuaa Jul 27, 2023
5ae17ff
[sonic_cli_gen] Add YANG refine support (#2804)
vadymhlushko-mlnx Jul 27, 2023
a56b11b
revert unit test tests/test_clear_tag (#2934)
maipbui Jul 31, 2023
cd882cc
Input check for timeout in generate_dump (#2925)
ycoheNvidia Aug 2, 2023
cf346a3
[chassis] rexec enhancements(#2935)
arlakshm Aug 3, 2023
5b492d5
[chassis][voq] clear: Fix clear queuecounters to also clear VOQ count…
patrickmacarthur Aug 11, 2023
9694c7d
[kdump] Fix API to read the current running image (#2217)
rajendra-dendukuri Aug 14, 2023
6322389
[show] Add 'show p4-table' command (#2773)
royyi8 Aug 15, 2023
8cb7320
[GCU] Add PORT table StateDB Validator (#2936)
isabelmsft Aug 16, 2023
7435b1c
Fix show acl table for masic (#2937)
arlakshm Aug 18, 2023
b15f95f
Fix in config override when all asic namespaces not present in golden…
judyjoseph Aug 19, 2023
7f8779d
[Chassis][Voq] Clear fabric counters queue/port (#2892)
kenneth-arista Aug 19, 2023
c523ff2
Add show techsupport feature for Marvell(Innovium) platform (#2829)
pdhruv-marvell Aug 23, 2023
a0b1cdc
Switch Port Modes and VLAN CLI Enhancement (#2419)
MuhammadUmarAsad Aug 24, 2023
09daeb2
[sfputil] Retrieve error-status for transceiver using sfp API (#2953)
mihirpat1 Aug 30, 2023
832ecf0
[GCU] Add BGPSentinel to CreateOnlyFilter (#2955)
guangyao6 Aug 30, 2023
d8a04d8
add Mellanox-SN4700-O8C48 hwsku (#2951)
isabelmsft Aug 30, 2023
c7c4831
[db_migrator.py] Fix issue while upgrading from 202205 to 202211 via …
Junchao-Mellanox Aug 31, 2023
3a4ebb6
Voltage and Current Sensors CLI (#2941)
bmridul Sep 7, 2023
57b3b31
Remove the CONFIG_DB_INIT flag dependency on db_migrator (#2959)
vivekrnv Sep 10, 2023
b1ac2ef
[sonic-package-manager] Increate timeout for sonic-package-manager mi…
yaqiangz Sep 11, 2023
82a4d71
Remove command to install libhiredis deb file (#2980)
saiarcot895 Sep 13, 2023
e2c1841
Added support to display only nonzero queue counter. (#2978)
abdosi Sep 14, 2023
ff6f8f3
Include /var/log.tmpfs in techsupport (#2979)
mihirpat1 Sep 14, 2023
5729028
Fix del vlan command (#2982)
maipbui Sep 15, 2023
701994f
Handle NotImplementedError exception while changing optoe write max (…
mihirpat1 Sep 19, 2023
3df1f18
[vlan][dhcp_relay] Fix error while delete vlan (#2987)
yaqiangz Sep 20, 2023
d82a490
[acl-loader] Identity ICMP v4/v6 based on IP_PROTOCOL for custom ACL …
lizhijianrd Sep 23, 2023
7d7a971
mmuconfig to set threshold for profiles (#2775)
alpeshspatel Sep 24, 2023
7a12424
[sonic-installer] print output from spm migrate (#2960)
stepanblyschak Sep 24, 2023
6ba6ddf
Remove syslog service validator in GCU (#2991)
wen587 Sep 26, 2023
ba179fb
[warm-reboot] remove ISSU bank check (#2958)
stepanblyschak Oct 2, 2023
4f26a4d
[portconfig]Auto FEC initial changes (#2965)
dgsudharsan Oct 3, 2023
583b498
Update str -> list[str] in config/main and fast-reboot-filter-routes …
maipbui Oct 5, 2023
1c1620c
Revert "Switch Port Modes and VLAN CLI Enhancement (#2419)" (#3007)
qiluo-msft Oct 7, 2023
0e43e4d
[sflow] Added egress Sflow support. (#2790)
rajkumar38 Oct 11, 2023
bf9c07c
Add target mode to sfputil firmware (#3002)
AnoopKamath Oct 12, 2023
424be9c
[fwutil] Fix python SyntaxWarning for 'is' with literals (#3013)
keboliu Oct 19, 2023
d857eb0
[db_migrator] Fix the broken version chain (#3014)
vivekrnv Oct 19, 2023
244ad2d
Revert "Remove syslog service validator in GCU (#2991)" (#3015)
wen587 Oct 20, 2023
1eb3158
[CMIS] Use the block size advertised by the xSFP to download the imag…
stephenxs Oct 23, 2023
0ae5d2d
[ci] Use correct bullseye docker image according to source branch.
liushilongbuaa Oct 24, 2023
ae22a17
Remove QoS configurations of single indexed tables before regeneratin…
stephenxs Oct 31, 2023
6833e6c
Support Mellanox Spectrum4 ASIC in generic configuration update (#3018)
stephenxs Oct 31, 2023
e01fc89
Run yang validation in unit test (#3025)
ganglyu Nov 1, 2023
a4eeb69
[config] config reload should generate sysinfo if missing (#3031)
wen587 Nov 2, 2023
ced0940
[dualtor_neighbor_check] Adjust zero-mac check condition (#3034)
lolyu Nov 6, 2023
62fcd77
Configure NTP according to extended configuration (#2835)
fastiuk Nov 9, 2023
177dd8e
[sonic-package-manager] add generated service to /etc/sonic/generated…
stepanblyschak Nov 9, 2023
253b797
[sonic-package-manager] do not modify config_db.json (#3032)
stepanblyschak Nov 9, 2023
67e1c3d
Update GCU rsyslog validator (#3012)
wen587 Nov 13, 2023
f1e24ae
GCU support for Cisco-8000 features (#3010)
rbpittman Nov 15, 2023
cd85569
[VOQ][saidump] Modify generate_dump: replace save_saidump with save_s…
JunhongMao Nov 15, 2023
75199c0
[sonic-package-manager] insert newline in /etc/sonic/generated_servic…
stepanblyschak Nov 15, 2023
a8d236c
[fast-reboot-filter-routes.py] Remove click and improve error reporti…
stepanblyschak Nov 16, 2023
c4b0782
Support new platform in generic configuration update (#3038)
stephenxs Nov 17, 2023
cfd2dd3
Add container rsyslog.conf to the sys dump (#3039)
vivekrnv Nov 19, 2023
3610ce9
[sonic-package-manager] Fix YANG validation failure on upgrade when f…
stepanblyschak Nov 20, 2023
8ebc56a
[sonic_installer]: Improve exception handling: introduce notes. (#3029)
nazariig Nov 20, 2023
1e81310
[wol] Implement wol command line utility (#3048)
lizhijianrd Nov 22, 2023
b317250
[sflow][db_migrator] Egress Sflow support (#3020)
rajkumar38 Nov 28, 2023
b5daf5d
[dhcp_relay] Fix dhcp_relay counter display issue (#3054)
yaqiangz Nov 29, 2023
71514ea
Revert "Run yang validation in unit test (#3025)" (#3055)
yxieca Nov 30, 2023
1b1402f
[hash]: Add ECMP/LAG hash algorithm CLI (#3036)
nazariig Dec 1, 2023
fba4bf0
[202311][db_migrator] add db migrator version space for 202305/202311…
yxieca Dec 21, 2023
72b6c04
Support disable/enable syslog rate limit feature (#3072)
Junchao-Mellanox Dec 25, 2023
cb0fd42
[202311] Collect module EEPROM data in dump (#3009) (#3124)
Junchao-Mellanox Jan 18, 2024
7a242ee
[202311] Support reading/writing module EEPROM data by page and offse…
Junchao-Mellanox Jan 19, 2024
e70b054
[202311] Revert bgp suppress fib pending (#3109)
stepanblyschak Jan 24, 2024
e9ae14d
Support golden config in db migrator (#3076)
ganglyu Dec 22, 2023
9c1d489
Fix database initialization for db_migrator (#3100)
ganglyu Dec 25, 2023
be6224a
[202311] Migrate GNMI table (#3138)
ganglyu Feb 1, 2024
f4b5ef2
Add all SKUs to the generic config update list (#3131)
stephenxs Jan 25, 2024
8862c11
Modify teamd retry count script to base BGP status on default BGP sta…
saiarcot895 Dec 14, 2023
1515edc
[db_migrator]Remove route migration (#3068)
dgsudharsan Dec 15, 2023
555ecf6
[chassis]: Support show ip bgp summary to display without error when …
arlakshm Jan 5, 2024
88c027f
[Techsupport]Adding more FRR and BGP dumps (#3118)
dgsudharsan Jan 12, 2024
fbd6c91
Disable Key Validation feature during sonic-installation for Cisco Pl…
selvipal Jan 11, 2024
2046e66
Reduce generate_dump mem usage for cores (#3052)
davidm-arista Dec 8, 2023
31a6584
Fix `sudo config load_mgmt_config` fails with error "File /var/run/dh…
maipbui Feb 6, 2024
54595c1
[202311]Fix the sfputil treats page number as decimal instead of hexa…
dgsudharsan Feb 9, 2024
b212576
[chassis] fix show bgp summary when no neighbors are present on one A…
arlakshm Feb 8, 2024
c711b06
[Mellanox buffer migrator] Do not touch the buffer model on generic S…
stephenxs Feb 5, 2024
891a5a3
remove exec from the platform_reboot call when executing reboot in kd…
DennisChiuEC Jul 3, 2024
276f648
Fix the error of running "show storm-control interface"
PeterTSW-EC Jul 5, 2024
6905870
[DPB] Enhance the code to shutdown interface before delete ports
chiourung Jul 8, 2024
3fc3273
apply:
bryan1978 Aug 24, 2023
22ca1a3
[LT] Not allow configuring link-training at RJ45 ports
PJHsieh Jul 8, 2024
3e46c54
[Bug] SONiC Extension Packages Migration Error During New SONiC Image…
PeterTSW-EC Jul 16, 2024
a5d34c5
Add doc for "config rate smoothing-interval"
rayxhuangEC Nov 29, 2023
685aa65
Avoid show management_interface address failed if no default gateway
irene-pan1202 Jul 23, 2024
64daa91
Avoid show management_interface address failed if no default gateway
irene-pan1202 Jul 23, 2024
e65977d
Merge pull request #10 from irene-pan1202/202311.X
chenkelly Jul 30, 2024
4135f5a
Revert "When enabling mgmtvrf, NTP vrf needs to be configured as "mgmt""
chenkelly Jul 30, 2024
91b8f19
Merge pull request #11 from edge-core/revert-10-202311.X
chenkelly Jul 30, 2024
55045b1
When mgmtvrf is enabled, the NTP vrf should be changed to "mgmt"
irene-pan1202 Jul 30, 2024
0029fe5
Merge pull request #12 from irene-pan1202/ntp_mgmtvrf
chenkelly Jul 30, 2024
2a66110
[VRF] Wait to delete VRF completely before adding the same VRF.
Jul 31, 2024
8f5cc80
Merge pull request #16 from Minkang-Tsai/202311.X
chenkelly Jul 31, 2024
02586f1
[VRF] fixing bug in order to get state db.
Aug 1, 2024
1def4fd
[VRF] enhance "show vrf" command
MuLinForest Aug 8, 2024
0a3454d
JIRA-SONIC-9482: [show] Fix exception error for "show ip route vrf all"
MuLinForest Jul 18, 2024
07e5bf4
Fix VLAN member not removed from VLAN TABLE after executing the CLI
twtseng-tim Aug 12, 2024
c9f927e
Merge pull request #18 from MuLinForest/202311.X-Enhance_show_vrf_com…
linarnan Aug 14, 2024
791373e
Merge pull request #19 from MuLinForest/202311.X-Fix_exception_error_…
linarnan Aug 14, 2024
b1acfcd
CLI enhancements to revtrieve data from TRANSCEIVER_FIRMWARE_INFO tab…
mihirpat1 Feb 28, 2024
d576922
Merge pull request #26 from tigerfu000/202311.X_syn_pr_3177
kevin28-9219 Aug 28, 2024
a5712ab
Fix the unit test error for TestShowVrf
MuLinForest Aug 29, 2024
665edbd
Merge pull request #27 from MuLinForest/202311.X-Fix_TestShowVrf
linarnan Aug 29, 2024
a8fc082
Fix enable ipv6-link-local-only fail on VLAN
link19430 Sep 5, 2024
cbfef9b
Merge pull request #29 from link19430/Fix-enable-ipv6-link-local-only…
linarnan Sep 6, 2024
de62523
Skip to execute the l3 nat command if the chip does not support NAT f…
DennisChiuEC Sep 10, 2024
e96e5d7
Looking for the SSD disk currently used by the SONiC.
roger530-ho Sep 16, 2024
6285d38
Update the test command for test_ssdhealth in show_test.py
roger530-ho Sep 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 0 additions & 11 deletions .azure-pipelines/docker-sonic-vs/Dockerfile

This file was deleted.

4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "CodeQL config"
queries:
- uses: security-and-quality
- uses: security-extended
43 changes: 43 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# For more infomation, please visit: https://github.com/github/codeql-action

name: "CodeQL"

on:
push:
branches:
- 'master'
- '202[0-9][0-9][0-9]'
pull_request_target:
branches:
- 'master'
- '202[0-9][0-9][0-9]'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql-config.yml
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
173 changes: 150 additions & 23 deletions acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class AclLoader(object):

ACL_TABLE = "ACL_TABLE"
ACL_RULE = "ACL_RULE"
CFG_ACL_TABLE = "ACL_TABLE"
STATE_ACL_TABLE = "ACL_TABLE_TABLE"
CFG_ACL_RULE = "ACL_RULE"
STATE_ACL_RULE = "ACL_RULE_TABLE"
ACL_TABLE_TYPE_MIRROR = "MIRROR"
ACL_TABLE_TYPE_CTRLPLANE = "CTRLPLANE"
CFG_MIRROR_SESSION_TABLE = "MIRROR_SESSION"
Expand All @@ -90,7 +94,7 @@ class AclLoader(object):
"ETHERTYPE_LLDP": 0x88CC,
"ETHERTYPE_VLAN": 0x8100,
"ETHERTYPE_ROCE": 0x8915,
"ETHERTYPE_ARP": 0x0806,
"ETHERTYPE_ARP": 0x0806,
"ETHERTYPE_IPV4": 0x0800,
"ETHERTYPE_IPV6": 0x86DD,
"ETHERTYPE_MPLS": 0x8847
Expand All @@ -117,11 +121,16 @@ def __init__(self):
self.tables_db_info = {}
self.rules_db_info = {}
self.rules_info = {}
self.tables_state_info = None
self.rules_state_info = None

# Load database config files
load_db_config()

self.sessions_db_info = {}
self.acl_table_status = {}
self.acl_rule_status = {}

self.configdb = ConfigDBConnector()
self.configdb.connect()
self.statedb = SonicV2Connector(host="127.0.0.1")
Expand All @@ -147,22 +156,48 @@ def __init__(self):

namespaces = multi_asic.get_all_namespaces()
for front_asic_namespaces in namespaces['front_ns']:
self.per_npu_configdb[front_asic_namespaces] = ConfigDBConnector(use_unix_socket_path=True, namespace=front_asic_namespaces)
self.per_npu_configdb[front_asic_namespaces] = ConfigDBConnector(namespace=front_asic_namespaces)
self.per_npu_configdb[front_asic_namespaces].connect()
self.per_npu_statedb[front_asic_namespaces] = SonicV2Connector(use_unix_socket_path=True, namespace=front_asic_namespaces)
self.per_npu_statedb[front_asic_namespaces] = SonicV2Connector(namespace=front_asic_namespaces)
self.per_npu_statedb[front_asic_namespaces].connect(self.per_npu_statedb[front_asic_namespaces].STATE_DB)

self.read_tables_info()
self.read_rules_info()
self.read_sessions_info()
self.read_policers_info()
self.acl_table_status = self.read_acl_object_status_info(self.CFG_ACL_TABLE, self.STATE_ACL_TABLE)
self.acl_rule_status = self.read_acl_object_status_info(self.CFG_ACL_RULE, self.STATE_ACL_RULE)

def read_tables_info(self):
"""
Read ACL_TABLE table from configuration database
:return:
"""
self.tables_db_info = self.configdb.get_table(self.ACL_TABLE)
# get the acl table info from host config_db
host_acl_table = self.configdb.get_table(self.ACL_TABLE)
# For multi asic get only the control plane acls from the host config_db
if self.per_npu_configdb:
for table, entry in host_acl_table.items():
if entry.get('type', None) != self.ACL_TABLE_TYPE_CTRLPLANE:
continue

self.tables_db_info[table] = entry
else:
self.tables_db_info.update(host_acl_table)

# for DATAACL, EVERFLOW acls.
# update the ports from all the namespaces
if self.per_npu_configdb:
for ns, config_db in self.per_npu_configdb.items():
acl_table = config_db.get_table(self.ACL_TABLE)
for table, entry in acl_table.items():
if entry.get('type', None) == self.ACL_TABLE_TYPE_CTRLPLANE:
continue
if table not in self.tables_db_info:
self.tables_db_info[table] = entry
else:
self.tables_db_info[table]['ports'] += entry.get(
'ports', [])

def get_tables_db_info(self):
return self.tables_db_info
Expand Down Expand Up @@ -210,7 +245,7 @@ def read_sessions_info(self):
for key in self.sessions_db_info:
if self.per_npu_statedb:
# For multi-npu platforms we will read from all front asic name space
# statedb as the monitor port will be differnt for each asic
# statedb as the monitor port will be different for each asic
# and it's status also might be different (ideally should not happen)
# We will store them as dict of 'asic' : value
self.sessions_db_info[key]["status"] = {}
Expand All @@ -224,6 +259,35 @@ def read_sessions_info(self):
self.sessions_db_info[key]["status"] = state_db_info.get("status", "inactive") if state_db_info else "error"
self.sessions_db_info[key]["monitor_port"] = state_db_info.get("monitor_port", "") if state_db_info else ""

def read_acl_object_status_info(self, cfg_db_table_name, state_db_table_name):
"""
Read ACL_TABLE status or ACL_RULE status from STATE_DB
"""
if self.per_npu_configdb:
namespace_configdb = list(self.per_npu_configdb.values())[0]
keys = namespace_configdb.get_table(cfg_db_table_name).keys()
else:
keys = self.configdb.get_table(cfg_db_table_name).keys()

status = {}
for key in keys:
# For ACL_RULE, the key is (acl_table_name, acl_rule_name)
if isinstance(key, tuple):
state_db_key = key[0] + "|" + key[1]
else:
state_db_key = key
status[key] = {}
if self.per_npu_statedb:
status[key]['status'] = {}
for namespace_key, namespace_statedb in self.per_npu_statedb.items():
state_db_info = namespace_statedb.get_all(self.statedb.STATE_DB, "{}|{}".format(state_db_table_name, state_db_key))
status[key]['status'][namespace_key] = state_db_info.get("status", "N/A") if state_db_info else "N/A"
else:
state_db_info = self.statedb.get_all(self.statedb.STATE_DB, "{}|{}".format(state_db_table_name, state_db_key))
status[key]['status'] = state_db_info.get("status", "N/A") if state_db_info else "N/A"

return status

def get_sessions_db_info(self):
return self.sessions_db_info

Expand Down Expand Up @@ -306,6 +370,14 @@ def is_table_l3v6(self, tname):
"""
return self.tables_db_info[tname]["type"].upper() == "L3V6"

def is_table_l3v4v6(self, tname):
"""
Check if ACL table type is L3V4V6
:param tname: ACL table name
:return: True if table type is L3V4V6 else False
"""
return self.tables_db_info[tname]["type"].upper() == "L3V4V6"

def is_table_l3(self, tname):
"""
Check if ACL table type is L3
Expand Down Expand Up @@ -469,6 +541,17 @@ def convert_ip(self, table_name, rule_idx, rule):
# "IP_ICMP" we need to pick the correct protocol number for the IP version
if rule.ip.config.protocol == "IP_ICMP" and self.is_table_ipv6(table_name):
rule_props["IP_PROTOCOL"] = self.ip_protocol_map["IP_ICMPV6"]
elif rule.ip.config.protocol == "IP_ICMP" and self.is_table_l3v4v6(table_name):
# For L3V4V6 tables, both ICMP and ICMPv6 are supported,
# so find the IP_PROTOCOL using the ether_type.
try:
ether_type = rule.l2.config.ethertype
except Exception as e:
ether_type = None
if rule.l2.config.ethertype == "ETHERTYPE_IPV6":
rule_props["IP_PROTOCOL"] = self.ip_protocol_map["IP_ICMPV6"]
else:
rule_props["IP_PROTOCOL"] = self.ip_protocol_map[rule.ip.config.protocol]
else:
rule_props["IP_PROTOCOL"] = self.ip_protocol_map[rule.ip.config.protocol]
else:
Expand Down Expand Up @@ -504,9 +587,28 @@ def convert_ip(self, table_name, rule_idx, rule):
def convert_icmp(self, table_name, rule_idx, rule):
rule_props = {}

is_table_v6 = self.is_table_ipv6(table_name)
type_key = "ICMPV6_TYPE" if is_table_v6 else "ICMP_TYPE"
code_key = "ICMPV6_CODE" if is_table_v6 else "ICMP_CODE"
is_rule_v6 = False
if self.is_table_ipv6(table_name):
is_rule_v6 = True
elif self.is_table_l3v4v6(table_name):
# get the IP version type using Ether-Type.
try:
ether_type = rule.l2.config.ethertype
if ether_type == "ETHERTYPE_IPV6":
is_rule_v6 = True
except Exception as e:
pass
else:
# get the IP version type using IP_PROTOCOL.
try:
ip_protocol = rule.ip.config.protocol
if ip_protocol == "IP_ICMPV6" or int(ip_protocol) == self.ip_protocol_map["IP_ICMPV6"]:
is_rule_v6 = True
except Exception as e:
pass

type_key = "ICMPV6_TYPE" if is_rule_v6 else "ICMP_TYPE"
code_key = "ICMPV6_CODE" if is_rule_v6 else "ICMP_CODE"

if rule.icmp.config.type != "" and rule.icmp.config.type != "null":
icmp_type = rule.icmp.config.type
Expand Down Expand Up @@ -611,7 +713,18 @@ def convert_rule_to_db_schema(self, table_name, rule):
rule_props["PRIORITY"] = str(self.max_priority - rule_idx)

# setup default ip type match to dataplane acl (could be overriden by rule later)
if self.is_table_l3v6(table_name):
if self.is_table_l3v4v6(table_name):
# ETHERTYPE must be passed and it should be one of IPv4 or IPv6
try:
ether_type = rule.l2.config.ethertype
except Exception as e:
raise AclLoaderException("l2:ethertype must be provided for rule #{} in table:{} of type L3V4V6".format(rule_idx, table_name))
if ether_type not in ["ETHERTYPE_IPV4", "ETHERTYPE_IPV6"]:
# Ether type must be v4 or v6 to match IP fields, L4 (TCP/UDP) fields or ICMP fields
if rule.ip or rule.transport:
raise AclLoaderException("ethertype={} is neither ETHERTYPE_IPV4 nor ETHERTYPE_IPV6 for IP rule #{} in table:{} type L3V4V6".format(rule.l2.config.ethertype, rule_idx, table_name))
rule_props["ETHER_TYPE"] = str(self.ethertype_map[ether_type])
elif self.is_table_l3v6(table_name):
rule_props["IP_TYPE"] = "IPV6ANY" # ETHERTYPE is not supported for DATAACLV6
elif self.is_table_l3(table_name):
rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV4"])
Expand All @@ -630,17 +743,22 @@ def convert_rule_to_db_schema(self, table_name, rule):
def deny_rule(self, table_name):
"""
Create default deny rule in Config DB format
Only create default deny rule when table is [L3, L3V6]
:param table_name: ACL table name to which rule belong
:return: dict with Config DB schema
"""
rule_props = {}
rule_data = {(table_name, "DEFAULT_RULE"): rule_props}
rule_props["PRIORITY"] = str(self.min_priority)
rule_props["PACKET_ACTION"] = "DROP"
if self.is_table_ipv6(table_name):
if self.is_table_l3v6(table_name):
rule_props["IP_TYPE"] = "IPV6ANY" # ETHERTYPE is not supported for DATAACLV6
else:
elif self.is_table_l3(table_name):
rule_props["ETHER_TYPE"] = str(self.ethertype_map["ETHERTYPE_IPV4"])
elif self.is_table_l3v4v6(table_name):
rule_props["IP_TYPE"] = "IP" # Drop both v4 and v6 packets
else:
return {} # Don't add default deny rule if table is not [L3, L3V6]
return rule_data

def convert_rules(self):
Expand All @@ -667,7 +785,7 @@ def convert_rules(self):
except AclLoaderException as ex:
error("Error processing rule %s: %s. Skipped." % (acl_entry_name, ex))

if not self.is_table_mirror(table_name) and not self.is_table_egress(table_name):
if not self.is_table_egress(table_name):
deep_update(self.rules_info, self.deny_rule(table_name))

def full_update(self):
Expand Down Expand Up @@ -786,32 +904,36 @@ def show_table(self, table_name):
:param table_name: Optional. ACL table name. Filter tables by specified name.
:return:
"""
header = ("Name", "Type", "Binding", "Description", "Stage")
header = ("Name", "Type", "Binding", "Description", "Stage", "Status")

data = []
for key, val in self.get_tables_db_info().items():
if table_name and key != table_name:
continue

stage = val.get("stage", Stage.INGRESS).lower()

# Get ACL table status from STATE_DB
if key in self.acl_table_status:
status = self.acl_table_status[key]['status']
else:
status = 'N/A'
if val["type"] == AclLoader.ACL_TABLE_TYPE_CTRLPLANE:
services = natsorted(val["services"])
data.append([key, val["type"], services[0], val["policy_desc"], stage])
data.append([key, val["type"], services[0], val["policy_desc"], stage, status])

if len(services) > 1:
for service in services[1:]:
data.append(["", "", service, "", ""])
data.append(["", "", service, "", "", ""])
else:
if not val["ports"]:
data.append([key, val["type"], "", val["policy_desc"], stage])
data.append([key, val["type"], "", val["policy_desc"], stage, status])
else:
ports = natsorted(val["ports"])
data.append([key, val["type"], ports[0], val["policy_desc"], stage])
data.append([key, val["type"], ports[0], val["policy_desc"], stage, status])

if len(ports) > 1:
for port in ports[1:]:
data.append(["", "", port, "", ""])
data.append(["", "", port, "", "", ""])

print(tabulate.tabulate(data, headers=header, tablefmt="simple", missingval=""))

Expand Down Expand Up @@ -873,7 +995,7 @@ def show_rule(self, table_name, rule_id):
:param rule_id: Optional. ACL rule name. Filter rule by specified rule name.
:return:
"""
header = ("Table", "Rule", "Priority", "Action", "Match")
header = ("Table", "Rule", "Priority", "Action", "Match", "Status")

def pop_priority(val):
priority = "N/A"
Expand Down Expand Up @@ -919,11 +1041,16 @@ def pop_matches(val):
priority = pop_priority(val)
action = pop_action(val)
matches = pop_matches(val)

rule_data = [[tname, rid, priority, action, matches[0]]]
# Get ACL rule status from STATE_DB
status_key = (tname, rid)
if status_key in self.acl_rule_status:
status = self.acl_rule_status[status_key]['status']
else:
status = "N/A"
rule_data = [[tname, rid, priority, action, matches[0], status]]
if len(matches) > 1:
for m in matches[1:]:
rule_data.append(["", "", "", "", m])
rule_data.append(["", "", "", "", m, ""])

raw_data.append([priority, rule_data])

Expand Down
Loading
Loading