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

[202205] 'portstat -j' avoid non json output for multi-asic/chassis duts #2875

Closed
wants to merge 156 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
0fc6f47
[config][muxcable] Add support for displaying soc_ipv4 and cable_type…
vdahiya12 Jun 7, 2022
0e31790
[config][muxcable] fix minor config DB logic issue (#2210)
vdahiya12 Jun 15, 2022
53ff644
[gendump] Add Support to dump BCM-DNX commands (#1813)
saksarav-nokia Jun 9, 2022
ed97c6f
[subinterface] Fix route add command to accept subinterface as dev (#…
dgsudharsan May 26, 2022
ce96543
[subinterface]Avoid removing the subinterface when last configured ip…
dgsudharsan May 26, 2022
4c600e8
[GCU] Validate peer_group_range ip_range are correct (#2145)
ghooo May 17, 2022
6865536
Modify override testcase to cover PORT admin_status (#2165)
wen587 May 18, 2022
6f4991e
[GCU] Handling non-compliant leaf-list with string values (#2174)
ghooo May 20, 2022
13ec600
[generic-config-updater] Add NTP validator (#2212)
wen587 Jun 15, 2022
600979e
Fix header for the output table following 'show ipv6 interface' comma…
dprital Jun 16, 2022
56c2c6b
[config reload] Fixing config reload when timer based services are di…
dgsudharsan Jun 22, 2022
785508d
[GCU] Handling type1 lists (#2171)
ghooo May 25, 2022
430cd65
[202205] [generate dump] Move the Core/Log collection to the End of p…
vivekrnv Jun 24, 2022
fbd79d4
Add check to not allow deleting PO if its member of vlan (#2237)
anilkpan Jun 30, 2022
c64454c
[GCU] Moving UniqueLanes from only validating moves, to be a suppleme…
ghooo Jun 28, 2022
6ebba53
[config/load_mgmt_config] Support load IPv6 mgmt IP (#2206)
Blueve Jul 1, 2022
7dae152
show linkmgrd status in `show mux status` (#2254)
zjswhhh Jul 5, 2022
a0b04de
[show] add new CLI to show tunnel route objects (#2255)
zjswhhh Jul 7, 2022
ea938e3
Add support for IP interface loopback action (#2192)
liorghub Jul 7, 2022
9f496a0
Update load minigraph to load backend acl (#2236)
neethajohn Jul 6, 2022
a6404b7
show commands for SYSTEM READY (#1851) (#2261)
sg893052 Jul 17, 2022
886f612
Revert "show commands for SYSTEM READY (#1851) (#2261)" (#2274)
yxieca Jul 22, 2022
ad40697
Fix test for pfcwd_sw_enable in db_migrator_test (#2253)
bingwang-ms Jul 21, 2022
bcc1206
Change db_migrator major version on master branch from version 2 to 3…
vaibhavhd Jul 20, 2022
79b4439
[sfpshow/sfputil] Enhance sfpshow and sfputil to behavior correctly o…
keboliu Jun 24, 2022
d7fbdd6
fix for non-coherent cmis modules (#2163)
qinchuanares May 26, 2022
46443c6
Update db_migrator to support `PORT_QOS_MAP|global` (#2205)
bingwang-ms Jul 26, 2022
4079e4a
Gives cisco-8000 more flexibility to easily add subcommnads under sho…
nathcohe Jun 20, 2022
504ebe6
Add 'traffic_shift_away' option to config load_minigraph (#2240)
tjchadaga Jul 8, 2022
b3d5d18
[MultiAsic] sudo reboot command doesn't gracefully stop Asic syncd# o…
mlok-nokia Jul 20, 2022
7d7e15e
[vnet_route_check] Align DB data parse logic with format used by swss…
volodymyrsamotiy Jul 18, 2022
218b175
[202205][counters] Keep counters cache in a single directory (#2280)
stepanblyschak Jul 29, 2022
9751479
Transfer organization from Azure to sonic-net (#2285)
liushilongbuaa Aug 1, 2022
e206e2d
[portconfig] Allow to configure interface mtu for physical ports only
dgsudharsan May 19, 2022
61ea21d
[watermarkstat] Fix CLI script for unconfigured PG counters (#2239)
nazariig Jul 28, 2022
e14f0c9
Add override testcase to verify removal (#2288)
wen587 Aug 3, 2022
7dac7a7
Fix version in db_migrator for `PORT_QOS_MAP|global` (#2289)
bingwang-ms Aug 3, 2022
8cbbe4f
[crm] add checking for CRM interval range (#2293)
ayurkiv-nvda Aug 8, 2022
c088ec4
Support to enable fips for the command sonic_installer (#2154) (#2303)
xumia Aug 10, 2022
9bdbfb8
sonic-utils: initial support for link-training (#2071)
ds952811 May 18, 2022
a1a09e4
Improve the way to check port type of RJ45 port (#2249)
stephenxs Jul 28, 2022
8fed381
[intfutil] Check whether the FEC mode is supported on the platform be…
stephenxs Aug 1, 2022
978f416
Fix GCU bug when backend service modifying config (#2295)
wen587 Aug 9, 2022
555947e
[config][muxcable] add support to enable/disable ycable telemetry (#2…
vdahiya12 Aug 9, 2022
750d1db
Convert IPv6 addresses to lowercase in apply-patch (#2299)
dbarashinvd Aug 11, 2022
9b21903
Fix test failure in dump table test in 202205 (#2307)
stephenxs Aug 12, 2022
0df3ba8
Revert "Improve the way to check port type of RJ45 port (#2249)"
yxieca Aug 12, 2022
19a3540
Revert "Revert "Improve the way to check port type of RJ45 port (#224…
yxieca Aug 13, 2022
fbf82b9
Fix the issue that sonic_platform is not installed on vs image (#2300)
stephenxs Aug 8, 2022
4bacc1c
Fix issue: exception in is_rj45_port in multi ASIC env (#2313)
stephenxs Aug 18, 2022
e0166a0
portconfig option to configure Tx power and laser frequency of ZR tra…
prgeor Aug 25, 2022
314bafd
[service_mgmt]: Fix fetch MULTI_INST_DEPENDENT bug in service_mgmt.sh…
Pterosaur Aug 25, 2022
4adf897
Fix issue: port_type is referenced before initialized (#2323)
stephenxs Aug 20, 2022
ec4b09f
Handle non-front-panel ports in is_rj45_port (#2327)
stephenxs Aug 25, 2022
1542e7a
Fix vrf UT failed issue (#2309)
liuh-80 Aug 15, 2022
edc0169
[decode-syseeprom] Fix setting use_db based on support_eeprom_db (#2270)
byu343 Aug 16, 2022
87ec859
Subinterface vrf bind issue fix (#2211)
preetham-singh Aug 29, 2022
5892f6d
[VRF]Adding CLI checks to ensure Vrf is valid in interface bind and s…
dgsudharsan Aug 29, 2022
5bf684c
[route_check]: Ignore standalone tunnel routes (#2325) (#2346)
theasianpianist Sep 2, 2022
729d811
Fix sonic-installer and 'show version' command crash when database do…
liuh-80 May 30, 2022
4054ebb
Add verification for override (#2305)
wen587 Sep 5, 2022
f7d69d4
Replace cmp in acl_loader with operator.eq (#2328)
ZhaohuiS Aug 30, 2022
55e8948
[fast-reboot]Avoid stopping masked services during fast-reboot (#2335)
dgsudharsan Sep 7, 2022
bc7b845
Add Password Hardening CLI support (#2338)
davidpil2002 Sep 4, 2022
1452b44
[GCU] Fix missing backend in dry run (#2347)
wen587 Sep 5, 2022
c5b0a6d
[counterpoll]Fixing counterpoll show for tunnel and acl stats (#2355)
dgsudharsan Sep 7, 2022
7de9305
[generate dump]Added error message when saisdkdump fails (#2356)
dgsudharsan Sep 7, 2022
d01153a
Use warm-boot infrastructure for fast-boot (#2365)
arfeigin Sep 13, 2022
b739efc
[subinterface]Added additional checks in portchannel and subinterface…
dgsudharsan Sep 14, 2022
c6d080d
Fix DBConfig not initialize issue in pfcwd (#2238) (#2372)
gechiang Sep 15, 2022
8794283
[202205] Fix typo in platform_sfputil_helper.is_rj45_port (#2374) (#2…
stephenxs Sep 19, 2022
8d20771
Vnet_route_check Vxlan tunnel route update. (#2281)
siqbal1986 Sep 15, 2022
cec5ab2
[GCU]Remove GCU unique lane check for duplicate lanes platforms (#2343)
wen587 Sep 20, 2022
c50ba4f
[minigraph] add option to specify golden path in load_minigraph (#2350)
wen587 Sep 20, 2022
562188f
Use 'default' VRF when VRF name is not provided (#2368)
sumukhatv Sep 14, 2022
99ed8ea
[link-local]Modify RIF check to include link-local enabled interfaces…
dgsudharsan Sep 22, 2022
d112f7c
[202205][auto-ts] add memory check (#2116) (#2413)
stepanblyschak Oct 2, 2022
be7da6b
[sonic-installer] use host docker startup arguments when running dock…
stepanblyschak Oct 3, 2022
342589e
Added cisco config platform commands (#2242) (#2418)
yucgu Oct 3, 2022
9dc8471
[Vxlanmgrd] [CPA] Update the vxlan_tunnel name len to be under IFNAMI…
vivekrnv Sep 28, 2022
2cfc75a
[doc] update "config feature" section with "--block" option (#2409)
stepanblyschak Sep 28, 2022
d77acf8
[doc] add documentation on automatic techsupport based on memory (#2411)
stepanblyschak Sep 28, 2022
e1d827e
[VxLAN]Fix Vxlan delete command to throw error when there are referen…
dgsudharsan Sep 29, 2022
f41e4d1
Fix for show vxlan tunnel command display issue #11902 (#2391)
skbhava Sep 30, 2022
99425a8
[actions] Support Semgrep by Github Actions (#2417)
maipbui Oct 3, 2022
a255838
[minigraph] new workflow for golden path (#2396)
wen587 Oct 5, 2022
6925947
[watermarkstat][202205] Add new warning message for the 'q_shared_mul…
vadymhlushko-mlnx Oct 10, 2022
e111ad4
[202205][Auto-Techsupport] Fix the coredump_gen_handler Exception whe…
stepanblyschak Oct 11, 2022
ab21b58
[202205] check for vxlan mapping before removing vlan (#2388) (#2446)
dgsudharsan Oct 18, 2022
86175c2
[chassis]Add fabric counter cli commands (#1860)
mlorrillere Oct 17, 2022
dffcc53
Add a subcommand to display a hexdump of transceiver EEPROM page (#2379)
mihirpat1 Oct 11, 2022
14646ff
[show priority-group drop counters] Remove backup with cached PG drop…
ayurkiv-nvda Oct 10, 2022
52b9c16
[muxcable][config] add CLI support for mux mode detach (#2425)
zjswhhh Oct 7, 2022
7d68534
[app_ext] [auto-ts] Add available_mem_threshold option (#2423)
vivekrnv Oct 19, 2022
b3ffe45
[show][muxcable] add support for show mux firmware version all (#2441)
vdahiya12 Oct 21, 2022
415d30e
[techsupport] Adding FRR EVPN dumps (#2442)
dgsudharsan Oct 23, 2022
936f1b1
Revert "[config reload]: On dual ToR systems, cache ARP and FDB table…
theasianpianist Oct 27, 2022
b1b3661
show vnet routes all. (#2341) (#2472)
siqbal1986 Nov 3, 2022
0bbe54a
[show] vnet endpoint [ip/ipv6] command (#2342) (#2421) (#2474)
siqbal1986 Nov 3, 2022
9d921a7
Fix exception in adding mirror_session when gre_type is absent (#2476)
bingwang-ms Nov 4, 2022
fff5f67
[show] vnet advertised-route command (#2390) (#2478)
siqbal1986 Nov 4, 2022
dbe8f2d
Fix sudo sfputil show error-status on a multiasic platform issue (#2373)
mlok-nokia Nov 2, 2022
927daea
Do not configure physical attributes on port channels in portconfig (…
stephenxs Nov 8, 2022
b2d50f4
[GCU] Fix JsonPointerFilter bug (#2477)
wen587 Nov 7, 2022
8cb6124
[armhf][sonic-installer] Fix the issue of sonic-installer list after …
mlok-nokia Nov 9, 2022
166739e
Accept 0 for queue and dscp (#2494)
bingwang-ms Nov 11, 2022
d8c49dc
Fixed SONIC_CLI_IFACE_MODE=alias show ip|ipv6 route output in default…
mlok-nokia Nov 18, 2022
6ed2afb
bugfix[2024] vnet route check exit code fix. (#2480)
siqbal1986 Nov 10, 2022
1d96b55
[show][muxcable] Catch port Value error exception (#2076) (#2486)
isabelladeleon12 Nov 10, 2022
2573aae
[sfp] Fix issue: Application Advertisement is not well formatted (#2491)
Junchao-Mellanox Nov 19, 2022
1f26c8c
avoid printing error if no neighbors are present (#2502)
arlakshm Nov 17, 2022
0157086
[VXLAN]Fixing traceback in show remotemac when mac moves during comma…
dgsudharsan Nov 22, 2022
8a78cf4
Port 202012 DB migration changes to newer branches (#2515)
vaibhavhd Nov 23, 2022
4b7335f
Add db_migrator_constants.py script to setup.py (#2534)
vaibhavhd Nov 30, 2022
d2fa21c
Disable "tag as local" when reboot (#2451)
lixiaoyuner Nov 2, 2022
0a030ce
[QoS] Introduce delay to the qos reload flow (#2503)
DavidZagury Dec 1, 2022
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
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
3 changes: 2 additions & 1 deletion 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 @@ -758,7 +759,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 Down
14 changes: 7 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
repositories:
- repository: sonic-swss
type: github
name: Azure/sonic-swss
endpoint: build
name: sonic-net/sonic-swss
endpoint: sonic-net

stages:
- stage: Build
Expand All @@ -26,7 +26,7 @@ stages:
vmImage: ubuntu-20.04

container:
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:latest
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:latest

steps:
- script: |
Expand Down Expand Up @@ -58,15 +58,15 @@ stages:
sudo dpkg -i libyang_1.0.73_amd64.deb
sudo dpkg -i libyang-cpp_1.0.73_amd64.deb
sudo dpkg -i python3-yang_1.0.73_amd64.deb
workingDirectory: $(Pipeline.Workspace)/target/debs/buster/
workingDirectory: $(Pipeline.Workspace)/target/debs/bullseye/
displayName: 'Install Debian dependencies'

- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: 9
artifact: sonic-swss-common
artifact: sonic-swss-common.bullseye.amd64
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
displayName: "Download sonic swss common deb packages"
Expand All @@ -86,14 +86,14 @@ stages:
sudo pip3 install sonic_yang_models-1.0-py3-none-any.whl
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
sudo pip3 install sonic_platform_common-1.0-py3-none-any.whl
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/buster/
workingDirectory: $(Pipeline.Workspace)/target/python-wheels/bullseye/
displayName: 'Install Python dependencies'

- script: |
set -ex
# Install .NET CORE
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/debian/10/prod
sudo apt-add-repository https://packages.microsoft.com/debian/11/prod
sudo apt-get update
sudo apt-get install -y dotnet-sdk-5.0
displayName: "Install .NET CORE"
Expand Down
2 changes: 1 addition & 1 deletion config/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _update_kube_server(db, field, val):
def_data = {
KUBE_SERVER_IP: "",
KUBE_SERVER_PORT: "6443",
KUBE_SERVER_INSECURE: "False",
KUBE_SERVER_INSECURE: "True",
KUBE_SERVER_DISABLE: "False"
}
for f in def_data:
Expand Down
Loading