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

Fix UT test_config_reload_untriggered_timer #81

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
366 commits
Select commit Hold shift + click to select a range
f2bf7ed
Change show kube command default value of insecure key to True (#2517)
lixiaoyuner Nov 30, 2022
252910a
[drop counters] Fix CLI script for unconfigured PGs (#2518)
liorghub Nov 29, 2022
e3658e9
[scripts/fast-reboot] Shutdown remaining containers through systemd (…
stepanblyschak Apr 13, 2022
0391221
[GCU] Add RemoveCreateOnlyDependency Validator/Generator (#2500)
wen587 Dec 2, 2022
e53b32e
[generate_dump] [Mellanox] Fix the duplicate dfw dump collection prob…
vivekrnv Dec 6, 2022
4b51e41
[config] Add check in config interface ip command to block if the int…
dgsudharsan Dec 6, 2022
da870fc
[azure-pipelines] update azp from buster to bullseye (#2455)
maipbui Nov 17, 2022
25d581e
[202205][show]Fix show route return code on error (#2547)
dgsudharsan Dec 13, 2022
aaa8d25
[202205][generate_dump]: Enhance show techsupport for cisco-8000 plat…
gvlaemyn Dec 13, 2022
2c29fde
[202205][route_check]: Ignore ASIC only SOC IPs (cherry-picking #2548…
yxieca Dec 13, 2022
efd2ab8
[muxcable][show] update `show mux tunnel-route` to separate ASIC and …
zjswhhh Dec 14, 2022
f40d82f
[db_migrator] Fix migration of Loopback data: handle all Loopback int…
vaibhavhd Dec 16, 2022
93172c4
[202205] [generate_dump] Optimize the execution time of the 'show tec…
vadymhlushko-mlnx Dec 20, 2022
67cbb15
[202205]Fixes #12170: Delete subinterface and recreate the subinterfa…
dgsudharsan Dec 20, 2022
f45dcfb
[generate_dump] Optimize the execution time of 'show techsupport' CLI…
vadymhlushko-mlnx Dec 26, 2022
f7988b0
[202205] [timer.unit.j2] use wanted-by in timer unit (#2561)
stepanblyschak Dec 26, 2022
9f2984a
[202205] Fix issue: unconfigured PGs are displayed in watermarkstat (…
stephenxs Dec 26, 2022
e1c8243
[202205][generate_dump] Fix for a deletion flow for all secret files …
vadymhlushko-mlnx Dec 29, 2022
3bc2bc6
[Mellanox][202205] Change severity to NOTICE in Mellanox buffer migra…
stephenxs Dec 29, 2022
c9ed09d
[202205] [sonic_installer] use /etc/resolv.conf from the host when mi…
liorghub Jan 3, 2023
3cb66b4
[202205] Preserve copp tables through DB migration (#2524) (#2574)
dprital Jan 4, 2023
9990208
Add sonic-delayed.target to Application Extension .timer file generat…
noaOrMlnx May 19, 2022
c1fa31d
Use github code scanning instead of LGTM (#2530)
liushilongbuaa Nov 30, 2022
dddd6c5
[202205] Revert the show-techsupport optimization PR's (#2581)
vadymhlushko-mlnx Jan 5, 2023
98dde31
resolved conflicts (#2589)
kannankvs Jan 11, 2023
d8202e8
[202205] Added a new option in show queue counters command to display…
skbarista Jan 12, 2023
7fc3fb7
[storyteller] add link prober state change to story teller (#2585)
zjswhhh Jan 6, 2023
0bc17f8
[202205] Extend fast-reboot STATE_DB entry timer (#2578)
arfeigin Jan 17, 2023
7979b9b
Transceiver eeprom dom CLI modification to show output from TRANSCEIV…
mihirpat1 Dec 5, 2022
3ebe948
[show] Add bgpraw to show run all (#2537)
wen587 Jan 14, 2023
7e6e7ef
Revert "[show] Add bgpraw to show run all (#2537)"
yxieca Jan 20, 2023
2419145
[202205][show] Add bgpraw to show run all (#2609)
wen587 Jan 20, 2023
1e3f38d
Revert "[202205][show] Add bgpraw to show run all (#2609)"
yxieca Jan 23, 2023
c63a62b
[muxcable][config] Add support to enable/disable ceasing to be an adv…
zjswhhh Jan 23, 2023
5e84f25
[202205][show] Add bgpraw to show run all (#2624)
wen587 Jan 30, 2023
5613277
[show_bfd] add local discriminator in show bfd command (#2625)
baorliu Jan 27, 2023
e0b3b4a
[masic] 'show interfaces counters' reminds to use '-d all' option to …
wenyiz2021 Jan 6, 2023
28d7bb2
Making 'show feature autorestart' more resilient to missing auto_rest…
kartik-arista Jan 31, 2023
557adfc
show logging CLI support for logs stored in tmpfs (#2641)
mihirpat1 Feb 1, 2023
2591e8b
multi asic support for show queue counter (#2647)
zhixzhu Feb 2, 2023
496a077
Add asic id for linecards so "show fabric counters queue/port" can wo…
jfeng-arista Feb 9, 2023
0ffb4b6
Add Transceiver PM basic CLI support to show output from TRANSCEIVER_…
longhuan-cisco Feb 9, 2023
a2252d8
Filter port invalid MTU configuration (#2378)
pettershao-ragilenetworks Oct 11, 2022
32b1d4d
[masic support] 'show run bgp' support for multi-asic (#2427)
wenyiz2021 Feb 1, 2023
7772392
Fixed admin state config CLI for Backport interfaces (#2557)
anamehra Jan 30, 2023
e949f31
[show] add support for gRPC show commands for `active-active` (#2629)
vdahiya12 Feb 7, 2023
2c933b0
[sai_failure_dump]Invoking dump during SAI failure (#2633)
dgsudharsan Feb 7, 2023
e61c5ec
[vlan] Refresh dhcpv6_relay config while adding/deleting a vlan (#266…
yaqiangz Feb 10, 2023
4f07f7f
Skip saidump for Spine Router as this can take more than 5 sec (#2637…
kenneth-arista Feb 10, 2023
3587a94
[202205][dhcp_relay] Remove add field of vlanid to DHCP_RELAY table w…
yaqiangz Feb 18, 2023
4e3bb6f
Add "show fabric reachability" command. (#2672)
jfeng-arista Feb 21, 2023
8aa7930
[portstat CLI] don't print reminder if use json format (#2670)
wenyiz2021 Feb 13, 2023
a4f141f
[sfputil] Firmware download/upgrade CLI support for QSFP-DD (#1947) (…
CliveNi Jan 9, 2023
69a6039
removed duplicates and resolved conflicts (#2674)
kannankvs Mar 1, 2023
4bd7d4f
[db_migrator] Add missing attribute 'weight' to route entries in APPL…
vaibhavhd Mar 3, 2023
03aa77b
[ci] Fix pipeline issue caused by sonic-slave-* change. (#2709)
liushilongbuaa Mar 2, 2023
51d9c9f
[warm/fast-reboot] Backup logs from tmpfs to disk during fast/warm sh…
vaibhavhd Mar 6, 2023
7c66b29
execute a platform-provided pre-reboot script before shutting down sw…
jhli-cisco Mar 8, 2023
b8072ea
[202205][dhcp_relay] Fix dhcp_relay restart error while add/del vlan …
yaqiangz Mar 8, 2023
6f05f7e
[202205] Remove timer from FAST_REBOOT STATE_DB entry and use finaliz…
arfeigin Mar 10, 2023
f861364
[202205] Fix fast-reboot DB migration (#2733)
arfeigin Mar 14, 2023
738406b
Enhance the logic to wait for all buffer tables to be removed in _cle…
stephenxs Mar 14, 2023
f88ca1c
Improve show acl commands (#2667)
bingwang-ms Mar 8, 2023
666f958
updated "show interfaces transceiver" command usage parameter in Comm…
kannankvs Mar 16, 2023
90e00ea
[202205][generate_dump] Revert "Revert generate_dump optimization PR'…
vadymhlushko-mlnx Mar 16, 2023
077de53
[show][muxcable] increase timeout for displaying HW_STATUS (#2712)
vdahiya12 Mar 7, 2023
89012b8
[202205] Add transceiver info CLI support to show output from TRANSCE…
mihirpat1 Mar 17, 2023
14428fa
Revert "Update load minigraph to load backend acl (#2236)" (#2735)
neethajohn Mar 17, 2023
42a57f4
[202205] Update the ref guide to reflect the vlan brief output (#2741)
vivekrnv Mar 17, 2023
3293866
[202205] Fast-reboot: preserve connected routes and set teamd timer t…
stepanblyschak Mar 21, 2023
93f1d74
[warm-reboot] fix warm-reboot when /tmp/cache is missing (#2367)
stepanblyschak Sep 19, 2022
cf12bb5
[warm-reboot] Use kexec_file_load instead of kexec_load when availabl…
saiarcot895 Jan 19, 2023
fe224f0
Revert "Convert IPv6 addresses to lowercase in apply-patch (#2299)" (…
wen587 Mar 28, 2023
eb2d916
[GCU] Prohibit removal of PFC_WD POLL_INTERVAL field (#2777)
isabelmsft Apr 5, 2023
f9f3e7e
[voq] Add fabric_ns to the ns_list when display_option is DISPLAY_ALL…
jfeng-arista Apr 3, 2023
ea1d849
Use sonic-swss-common artifacts from the matching source branch (#2783)
saiarcot895 Apr 6, 2023
fdea806
[route_check] fix IPv6 address handling (#2799)
stepanblyschak Apr 18, 2023
98dadce
[GCU] Add PFC_WD RDMA validator (#2781)
isabelmsft Apr 19, 2023
2410d36
Fixed a bug in "show vnet routes all" causing screen overrun. (#2644)…
siqbal1986 Apr 19, 2023
a5199f7
[voq][chassis][generate_dump] [BCM] Dump only the relevant BCM comman…
saksarav-nokia Apr 10, 2023
3a880a2
Support to display the SONiC OS Version in the command show version (…
xumia Apr 12, 2023
7d16b18
Remove the no use new line in show version (#2792)
xumia Apr 13, 2023
ece22b7
Revert "[GCU] Add PFC_WD RDMA validator (#2781)"
yxieca Apr 20, 2023
47f8499
[202205][DBMigrator] Update db_migrator to support EdgeZoneAggregator…
developfast Apr 25, 2023
506dd7a
[GCU] Add PFC_WD RDMA validator (#2810)
isabelmsft Apr 26, 2023
6c400c4
[GCU] protect loopback0 from deletion (#2638) (#2813)
wen587 May 1, 2023
79c9971
[GCU] Add vlanintf-validator (#2697)
wen587 Mar 9, 2023
a8455fd
Fix bug in GCU vlanintf_validator (#2765)
wen587 Mar 29, 2023
6b5bf99
[config]config reload should generate sysinfo if missing (#2778)
wen587 May 1, 2023
2e9c99e
[show][muxcable] fix `show mux hwmode muxdirection` RC (#2812)
zjswhhh Apr 28, 2023
b49d78c
Change default CDB run mode to non-hitless (#2817)
mihirpat1 May 3, 2023
f6359bc
[acl-loader] Only add default deny rule when table is L3 or L3V6 (#27…
lizhijianrd May 4, 2023
8adaa02
Added platform plugin support in load_minigraph (#2808) (#2831)
anamehra May 8, 2023
6268309
[config]: Dynamically start and stop ndppd (#2814)
theasianpianist May 4, 2023
c72ddaf
[config]Support multi-asic Golden Config override with fix (#4)
wen587 May 16, 2023
3053371
Update TRANSCEIVER_INFO table after CDB FW upgrade (#2837)
mihirpat1 May 17, 2023
e2f0f2c
LAG keepalive script to reduce lacp session wait during warm-reboot (…
vaibhavhd May 4, 2023
14b2150
[GCU]Fix rdma check failure (#2824)
wen587 May 4, 2023
d98033f
correctly parsing complete ipv6 vnet info (#2827)
yenlu-keith May 4, 2023
ff26d90
Fix the invalid variable issue when set-fips in uboot (#2834)
xumia May 13, 2023
673564e
Merge remote-tracking branch 'public/202205' into 202205
May 25, 2023
3dabc06
Merge pull request #5 from gechiang/202205
gechiang May 25, 2023
77b725c
Fix the show interface counters throwing exception on device with no …
abdosi May 26, 2023
4b96bd7
Update pcieutil error message on loading common pcie module (#2786)
cytsao1 May 20, 2023
377e404
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld May 30, 2023
a35b227
Merge pull request #6 from mssonicbld/sonicbld/202205-merge
gechiang May 30, 2023
cd08aa6
[show][muxcable] add some new commands health, reset-cause, queue_inf…
vdahiya12 May 30, 2023
b26b917
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld May 31, 2023
d65f6e2
Merge pull request #7 from mssonicbld/sonicbld/202205-merge
gechiang May 31, 2023
051f28c
[db-migrator] Fix hwsku match for 6100 and add errors when hwsku is N…
vaibhavhd May 30, 2023
d1f4413
[vlan][dhcp_relay] Clear dhcpv6 relay counter while deleting vlan (#2…
yaqiangz May 29, 2023
ec47214
fix show interface neighbor expected empty issue (#2465)
jcaiMR Nov 3, 2022
75ca81e
[202205][config]Support multi-asic Golden Config override with fix (#…
wen587 Jun 6, 2023
0b87808
Add display support for serial field in show chassis modules status C…
amulyan7 Jun 7, 2023
cf90d4d
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 8, 2023
542411b
Merge pull request #8 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 8, 2023
24d0d1c
Update portstat (#2877)
wenyiz2021 Jun 14, 2023
499378c
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 14, 2023
e7b4125
Merge pull request #9 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 14, 2023
e42291b
[config] Generate sysinfo as needed when override config (#2836)
wen587 May 25, 2023
e7eac6b
[config] Generate sysinfo in single asic (#2856)
wen587 May 31, 2023
e0333b5
Revert "[config]config reload should generate sysinfo if missing (#27…
wen587 Jun 5, 2023
43c85ef
[dhcp-relay] Fix dhcp6relay counter issue (#2866)
yaqiangz Jun 12, 2023
3bd6b3c
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 16, 2023
b7c9a1d
Merge pull request #10 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 16, 2023
bf48061
[chassis]: remote cli commands infra for sonic chassis (#2850)
arlakshm Jun 6, 2023
29b26b9
[chassis][voq[Add "config fabric port ..." commands and tests. (#2730)
jfeng-arista May 15, 2023
78c2a15
Merge pull request #11 from gechiang/202205
gechiang Jun 21, 2023
1787410
[202205][db_migrator] Add migration of FLEX_COUNTER_DELAY_STATUS duri…
vadymhlushko-mlnx Jun 23, 2023
9d01c03
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 23, 2023
b7c78cb
Merge pull request #12 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 23, 2023
436ecb0
[GCU Feature Update] Cherry-pick Platform Validator PR to 202205 (#2…
isabelmsft Jun 23, 2023
7b18000
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 24, 2023
2fb0432
Merge pull request #13 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 24, 2023
517ba4d
[chassis][multi asic] change acl_loader to use tcp socket for db comm…
arlakshm Jun 23, 2023
f0cf040
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 30, 2023
029dbe0
Merge pull request #14 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 30, 2023
b932092
[db_migrator] Set correct CURRENT_VERSION, extend UT (#2894)
vadymhlushko-mlnx Jul 6, 2023
11ed0f3
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jul 7, 2023
b6ea3e3
Merge pull request #15 from mssonicbld/sonicbld/202205-merge
mssonicbld Jul 7, 2023
0ea47b4
[db_migrator] Remove hardcoded config and migrate config from minigra…
vaibhavhd Jun 29, 2023
054a8b9
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jul 8, 2023
b4fb0e0
Merge pull request #16 from mssonicbld/sonicbld/202205-merge
mssonicbld Jul 8, 2023
20853a6
Revert "[GCU Feature Update] Cherry-pick Platform Validator PR to 202…
isabelmsft Jul 12, 2023
e2547d1
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jul 13, 2023
ad65cf1
Merge pull request #17 from mssonicbld/sonicbld/202205-merge
mssonicbld Jul 13, 2023
d89d483
[route_check][dualtor] Ignore vlan neighbor route miss (#2888)
lolyu Jul 13, 2023
24fc1db
[dualtor][route_check] filter out `soc_ipv6` (#2899)
zjswhhh Jul 12, 2023
58db48a
[show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as …
zjswhhh Jul 12, 2023
bc7c792
Add FEC correctable and uncorrectable port stats (#2027)
prgeor Aug 4, 2022
e77f559
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jul 14, 2023
5c7f8ca
Merge pull request #18 from mssonicbld/sonicbld/202205-merge
mssonicbld Jul 14, 2023
0c6d0c5
[202205] Flush RESTAPI db in fast-reboot shutdown path (#2921)
bingwang-ms Jul 20, 2023
a32ddc1
[show][muxcable] update `show mux config` to print out `soc_ipv6` as …
zjswhhh Jul 13, 2023
9986464
[dualtor] Add script to verify consistency between kernel and ASIC (…
lolyu Jul 14, 2023
4f14ee2
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jul 21, 2023
0a38fe4
Merge pull request #19 from mssonicbld/sonicbld/202205-merge
mssonicbld Jul 21, 2023
bef3ffe
[db_migrator] Set docker_routing_config_mode to the value obtained fr…
vaibhavhd Aug 10, 2023
4c6af3c
[multi-asic] Refine [override config table] for corner cases (#2918)
wenyiz2021 Jul 20, 2023
69d348d
[CLI][Show][BGP] Show BGP Change for no neighbor scenario (#2885)
developfast Jul 4, 2023
0f001c5
UT change: for db_migrator test do not check for RESTAPI cert values …
vaibhavhd Jul 20, 2023
661193f
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Aug 11, 2023
32a5b1d
Merge pull request #20 from mssonicbld/sonicbld/202205-merge
mssonicbld Aug 11, 2023
56a1ae2
clear: Fix clear queuecounters to also clear VOQ counters (#2879)
patrickmacarthur Aug 17, 2023
eec809a
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Aug 18, 2023
bfb0112
Merge pull request #21 from mssonicbld/sonicbld/202205-merge
mssonicbld Aug 18, 2023
49bb94d
[Chassis][Voq] Clear fabric counters queue/port (#2892)
kenneth-arista Aug 19, 2023
ba32772
Fix in config override when all asic namespaces not present in golden…
judyjoseph Aug 19, 2023
1ed5b5a
Add transceiver status CLI to show output from TRANSCEIVER_STATUS tab…
longhuan-cisco Aug 23, 2023
1353492
Merge pull request #22 from gechiang/202205
gechiang Aug 23, 2023
543be01
[chassis] rexec enhancements(#2935)
arlakshm Aug 3, 2023
c422c10
Merge pull request #23 from gechiang/202205
gechiang Aug 23, 2023
fdf101a
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Aug 24, 2023
69f4c71
Merge pull request #24 from mssonicbld/sonicbld/202205-merge
mssonicbld Aug 24, 2023
c4d2c47
Revert "[Chassis][Voq] Clear fabric counters queue/port (#2892)"
gechiang Aug 27, 2023
ac9bd53
Merge pull request #25 from Azure/revert-22-202205
gechiang Aug 28, 2023
4c91f77
Clear fabric counters queue/port
jfeng-arista Sep 1, 2023
627a2f5
[Techsupport] Update the message seen during the lock acquisition fai…
vivekrnv Jul 16, 2023
03292ff
Fix show acl table for masic (#2937)
arlakshm Aug 18, 2023
787b4a3
Remove SFP index usage in generating list of SFP hw error (#2961)
prgeor Sep 6, 2023
dc55f21
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Sep 7, 2023
387b980
Merge pull request #27 from mssonicbld/sonicbld/202205-merge
mssonicbld Sep 7, 2023
3f0d455
Added support of queue non zero counter option
abdosi Sep 13, 2023
66ea58a
Merge pull request #28 from abdosi/202205
abdosi Sep 14, 2023
4bf29fe
[sonic-package-manager] Increate timeout for sonic-package-manager mi…
yaqiangz Sep 11, 2023
d9bc820
Handle NotImplementedError exception while changing optoe write max (…
mihirpat1 Sep 19, 2023
8cf9817
Merge pull request #26 from jfeng-arista/202205-clear-fabric-counters
gechiang Sep 26, 2023
7df1c6b
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Sep 27, 2023
75030e0
Merge pull request #29 from mssonicbld/sonicbld/202205-merge
mssonicbld Sep 27, 2023
44dbfde
mmuconfig to set threshold for profiles master#2775
alpeshspatel Sep 27, 2023
ceced56
Merge pull request #30 from alpeshspatel/alpeshspatel/util.msft.20220…
abdosi Sep 28, 2023
ff8a064
[202205][acl-loader] Identity ICMP v4/v6 based on IP_PROTOCOL for cus…
lizhijianrd Sep 29, 2023
bb5123d
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Sep 30, 2023
c4dcb32
Merge pull request #31 from mssonicbld/sonicbld/202205-merge
mssonicbld Sep 30, 2023
0ad458c
Include /var/log.tmpfs in techsupport (#2979)
mihirpat1 Sep 14, 2023
27cea9f
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Oct 14, 2023
b97d75e
Merge pull request #32 from mssonicbld/sonicbld/202205-merge
mssonicbld Oct 14, 2023
5d3c563
[dualtor_neighbor_check] Adjust zero-mac check condition (#3034)
lolyu Nov 6, 2023
d61c2a3
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Nov 9, 2023
189ea52
Merge pull request #33 from mssonicbld/sonicbld/202205-merge
mssonicbld Nov 9, 2023
8765fce
[GCU Bug Fix] Cherry-pick RDMA Platform Validator PR to 202205 (#3051)
isabelmsft Nov 29, 2023
4b52394
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Nov 30, 2023
0bf2af5
Merge pull request #35 from mssonicbld/sonicbld/202205-merge
mssonicbld Nov 30, 2023
4463875
Enhanced route_check script to cover multi-asic platforms.
deepak-singhal0408 Jan 3, 2024
f5f9a85
[DPB] Remove the optimization logic for delete/add ports. (#2463)
aravindmani-1 Nov 18, 2022
89f62d3
Merge pull request #39 from deepak-singhal0408/deepsinghal/enhance_ro…
rlhui Jan 5, 2024
ee2c12e
[chassis]: Support show ip bgp summary to display without error when …
arlakshm Jan 5, 2024
7dc1a54
Merge pull request #40 from gechiang/202205
gechiang Jan 6, 2024
bef96a1
[202205] Allow using latest sonic-swss-common build even if tests fai…
saiarcot895 Jan 18, 2024
06d1133
[config] config reload should generate sysinfo if missing (#3031) (#…
wen587 Jan 22, 2024
7a7305e
Fix issue: out of range sflow polling interval is accepted and stored…
stephenxs Jan 22, 2024
241f9cc
[202205] Add teamd retry count script to 202205 image (#3116)
saiarcot895 Jan 23, 2024
49d9087
Added change to not return error for Sonic t2/spine-router role
abdosi Feb 5, 2024
9099585
Merge pull request #41 from abdosi/202205
gechiang Feb 5, 2024
8bd6327
[chassis] fix show bgp summary when no neighbors are present on one A…
arlakshm Feb 8, 2024
2242e5a
Merge pull request #42 from gechiang/202205
gechiang Feb 8, 2024
b80fbdf
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Feb 19, 2024
6535704
Merge pull request #44 from mssonicbld/sonicbld/202205-merge
mssonicbld Feb 19, 2024
f068356
[show] Update show run all to cover all asic config in multiasic (#3148)
wen587 Feb 20, 2024
a364953
Merge pull request #45 from gechiang/202205
gechiang Feb 23, 2024
e573439
[show] multi-asic show running test residue (#3198)
wen587 Mar 8, 2024
2b86126
Merge pull request #49 from gechiang/ghc-202205
gechiang Mar 8, 2024
724178c
Modify transceiver PM CLI to handle N/A value for DOM threshold (#3174)
mihirpat1 Feb 28, 2024
39316e4
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Mar 13, 2024
c6ac555
Merge pull request #52 from mssonicbld/sonicbld/202205-merge
mssonicbld Mar 13, 2024
49c32d0
T2-VOQ-VS: Modified exception handling due to new sonic_platform pack…
deepak-singhal0408 Apr 3, 2024
26f49f4
Merge pull request #61 from gechiang/202205
gechiang Apr 17, 2024
bbc154a
Add Multi ASIC support for apply-patch
xincunli-sonic Apr 24, 2024
8d815da
Merge pull request #64 from xincunli-sonic/xincun/gcu-multiasic
gechiang Apr 26, 2024
5449b6c
[chassis][midplane] Add notification to Supervisor when LC is gracefu…
mlok-nokia May 15, 2024
f8e347e
[show] Show running config when bgp is down
wen587 May 30, 2024
dec2418
Merge pull request #70 from wen587/show_run_587
gechiang May 30, 2024
07ff07a
Import Patch
xincunli-sonic Jun 3, 2024
ad9dc50
Merge pull request #71 from xincunli-sonic/xincun/fix-patch
gechiang Jun 3, 2024
eb44b6b
Fix build error
xincunli-sonic Jun 3, 2024
72df294
Merge pull request #72 from xincunli-sonic/xincun/fix-build-error
gechiang Jun 3, 2024
6742ebe
Merge branch '202205' into 202205
gechiang Jun 4, 2024
9c26b65
Merge pull request #69 from gechiang/202205
gechiang Jun 4, 2024
5388cb4
Update for the procedures for insertion/hot swap of Switch Fabric Mod…
JunhongMao May 29, 2024
af721c9
Merge pull request #73 from gechiang/202205
gechiang Jun 4, 2024
8e71e65
[build] Fix base OS compilation issue caused by incompatibility betwe…
volodymyrsamotiy Jun 5, 2024
e5ba06c
Merge branch '202205' of https://github.com/sonic-net/sonic-utilities…
mssonicbld Jun 6, 2024
a9d7b12
Merge pull request #74 from mssonicbld/sonicbld/202205-merge
mssonicbld Jun 6, 2024
79cb599
[chassis][show-runningconfig] Fix the show runningconfiguration all i…
mlok-nokia Mar 14, 2024
47415b8
Merge pull request #76 from gechiang/202205
gechiang Jun 13, 2024
90fd38f
Add full configuration validation. (#3316)
xincunli-sonic May 17, 2024
621fc64
Cherry pick 3299
xincunli-sonic Jun 14, 2024
c643f68
Add missing import
xincunli-sonic Jun 17, 2024
8157142
Merge pull request #77 from xincunli-sonic/xincun/cherry-pick-3316-an…
gechiang Jun 21, 2024
cc5acba
Fix test_config_reload_untriggered_timer
xincunli-sonic Jun 23, 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
  •  
  •  
  •  
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}}"
21 changes: 21 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Semgrep

on:
pull_request: {}
push:
branches:
- master
- '201[7-9][0-1][0-9]'
- '202[0-9][0-1][0-9]'

jobs:
semgrep:
name: Semgrep
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci
env:
SEMGREP_RULES: p/default
150 changes: 127 additions & 23 deletions acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import ipaddress
import json
import syslog
import operator

import openconfig_acl
import tabulate
Expand Down Expand Up @@ -71,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 Down Expand Up @@ -116,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 @@ -146,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 @@ -209,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 @@ -223,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 @@ -305,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 @@ -503,9 +576,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 @@ -629,17 +721,20 @@ 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"])
else:
return {} # Don't add default deny rule if table is not [L3, L3V6]
return rule_data

def convert_rules(self):
Expand All @@ -666,7 +761,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 @@ -758,7 +853,7 @@ def incremental_update(self):
namespace_configdb.mod_entry(self.ACL_RULE, key, None)

for key in existing_controlplane_rules:
if cmp(self.rules_info[key], self.rules_db_info[key]) != 0:
if not operator.eq(self.rules_info[key], self.rules_db_info[key]):
self.configdb.set_entry(self.ACL_RULE, key, self.rules_info[key])
# Program for per-asic namespace corresponding to front asic also if present.
# For control plane ACL it's not needed but to keep all db in sync program everywhere
Expand All @@ -785,32 +880,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 @@ -870,7 +969,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 @@ -916,11 +1015,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