Skip to content

Commit 7546b7c

Browse files
authored
Merge branch 'master' into yang_portchannel_gcu_poc_2
2 parents f338049 + bbcdf2e commit 7546b7c

260 files changed

Lines changed: 16079 additions & 11781 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

-8 KB
Binary file not shown.

.bandit

Whitespace-only changes.

.github/workflows/bandit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This workflow is to do the bandit check
2+
#
3+
4+
name: bandit
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
jobs:
13+
bendit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: bandit
18+
uses: jpetrucciani/bandit-check@master
19+
with:
20+
path: '.'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Currently, this list of dependencies is as follows:
2626
- libyang-cpp_1.0.73_amd64.deb
2727
- python3-yang_1.0.73_amd64.deb
2828
- redis_dump_load-1.1-py3-none-any.whl
29-
- swsssdk-2.0.1-py3-none-any.whl
3029
- sonic_py_common-1.0-py3-none-any.whl
3130
- sonic_config_engine-1.0-py3-none-any.whl
3231
- sonic_yang_mgmt-1.0-py3-none-any.whl
3332
- sonic_yang_models-1.0-py3-none-any.whl
33+
- python-swsscommon_1.0.0_amd64.deb
3434

3535

3636
A convenient alternative is to let the SONiC build system configure a build enviroment for you. This can be done by cloning the [sonic-buildimage](https://github.com/Azure/sonic-buildimage) repo, building the sonic-utilities package inside the Debian Buster slave container, and staying inside the container once the build finishes. During the build process, the SONiC build system will build and install all the necessary dependencies inside the container. After following the instructions to clone and initialize the sonic-buildimage repo, this can be done as follows:
@@ -40,9 +40,9 @@ A convenient alternative is to let the SONiC build system configure a build envi
4040
make configure PLATFORM=generic
4141
```
4242
43-
2. Build the sonic-utilities Python wheel package inside the Buster slave container, and tell the build system to keep the container alive when finished
43+
2. Build the sonic-utilities Python wheel package inside the Bullseye slave container, and tell the build system to keep the container alive when finished
4444
```
45-
make NOJESSIE=1 NOSTRETCH=1 KEEP_SLAVE_ON=yes target/python-wheels/sonic_utilities-1.2-py3-none-any.whl
45+
make NOSTRETCH=1 NOBUSTER=1 KEEP_SLAVE_ON=yes target/python-wheels/bullseye/sonic_utilities-1.2-py3-none-any.whl
4646
```
4747
4848
3. When the build finishes, your prompt will change to indicate you are inside the slave container. Change into the `src/sonic-utilities/` directory

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14+
15+
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

acl_loader/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import ipaddress
55
import json
66
import syslog
7+
import operator
78

89
import openconfig_acl
910
import tabulate
@@ -758,7 +759,7 @@ def incremental_update(self):
758759
namespace_configdb.mod_entry(self.ACL_RULE, key, None)
759760

760761
for key in existing_controlplane_rules:
761-
if cmp(self.rules_info[key], self.rules_db_info[key]) != 0:
762+
if not operator.eq(self.rules_info[key], self.rules_db_info[key]):
762763
self.configdb.set_entry(self.ACL_RULE, key, self.rules_info[key])
763764
# Program for per-asic namespace corresponding to front asic also if present.
764765
# For control plane ACL it's not needed but to keep all db in sync program everywhere

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ resources:
1010
repositories:
1111
- repository: sonic-swss
1212
type: github
13-
name: Azure/sonic-swss
14-
endpoint: build
13+
name: sonic-net/sonic-swss
14+
endpoint: sonic-net
1515

1616
stages:
1717
- stage: Build

config/config_mgmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import sonic_yang
1717
from jsondiff import diff
18-
from swsssdk import port_util
18+
from sonic_py_common import port_util
1919
from swsscommon.swsscommon import SonicV2Connector, ConfigDBConnector
2020
from utilities_common.general import load_module_from_source
2121

0 commit comments

Comments
 (0)