You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update repository URL after repository migration (sonic-net#6277)
What is the motivation for this PR?
The sonic-mgmt repository has been migrated to new location:
https://github.com/sonic-net/sonic-mgmt
The URLs embedded in docs and code need to be updated for this change.
How did you do it?
This change updated all the URLs in docs and code.
This change also merged a duplicated entry in test_mark_conditions.yaml:
cacl/test_cacl_application.py::test_multiasic_cacl_application
Signed-off-by: Xin Wang <xiwang5@microsoft.com>
Copy file name to clipboardexpand all lines: ansible/library/multi-asic_aware_module_requirements.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Requirements for designing a customized ansible module to support multi-ASIC
2
2
3
-
PR https://github.com/Azure/SONiC/pull/644 introduced the HLD to support multi ASIC. In the future, multi DUT or Chassis will be supported by SONiC as well. Some of the customized ansible modules need to be updated to support testing of the upcoming new architectures. This document tries to propose some requirements for designing customized ansible modules that need to deal with multi-ASIC. The target is to have a clean and easy to use interface for calling these ansible modules in scripts testing multi DUT and multi ASIC system. Meanwhile, the ansible modules need to maintain backward compatibility for single DUT and single ASIC testing.
3
+
PR https://github.com/sonic-net/SONiC/pull/644 introduced the HLD to support multi ASIC. In the future, multi DUT or Chassis will be supported by SONiC as well. Some of the customized ansible modules need to be updated to support testing of the upcoming new architectures. This document tries to propose some requirements for designing customized ansible modules that need to deal with multi-ASIC. The target is to have a clean and easy to use interface for calling these ansible modules in scripts testing multi DUT and multi ASIC system. Meanwhile, the ansible modules need to maintain backward compatibility for single DUT and single ASIC testing.
4
4
5
5
## Requirements
6
6
@@ -73,7 +73,7 @@ duthosts.foo(asic_index="all")
73
73
74
74
## How to detect a multi ASIC system
75
75
76
-
According to https://github.com/Azure/SONiC/pull/644, multi ASIC system should have file `/usr/share/sonic/device/<platform>/asic.conf`:
76
+
According to https://github.com/sonic-net/SONiC/pull/644, multi ASIC system should have file `/usr/share/sonic/device/<platform>/asic.conf`:
Copy file name to clipboardexpand all lines: ansible/roles/test/files/acstests/IP_decap_test.py
+41-41
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
'''
2
-
Owner: Dor Marcus <Dorm@mellanox.com>
2
+
Owner: Dor Marcus <Dorm@mellanox.com>
3
3
Created on: 12/09/2017
4
-
Description: This file contains the Decapasulation test for SONIC, to test Decapsulation of IPv4 with double and triple encapsulated packets
5
-
6
-
Design is available in https://github.com/Azure/SONiC/wiki/IPv4-Decapsulation-test
7
-
4
+
Description: This file contains the Decapasulation test for SONIC, to test Decapsulation of IPv4 with double and triple encapsulated packets
5
+
6
+
Design is available in https://github.com/sonic-net/SONiC/wiki/IPv4-Decapsulation-test
7
+
8
8
Precondition: Before the test start, all routes need to be defined as in the route_info.txt file, in addition to the decap rule that need to be set as the dspc_mode
9
9
topology: The test need to run on non-lag systems with at least 31 active ports
Copy file name to clipboardexpand all lines: ansible/roles/test/files/ptftests/py3/README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
# why migrate docker-ptf
4
4
5
5
6
-
As of January 1, 2020, Python 2 is no longer supported by the Python core team, that's why we have to migrate our code from Python2 to python3.
6
+
As of January 1, 2020, Python 2 is no longer supported by the Python core team, that's why we have to migrate our code from Python2 to python3.
7
7
8
-
`docker-ptf` is our first goal, because it's a separated docker container and only scripts under `ansible/role/test/files/ptftests` in `sonic-mgmt` repo run in `docker-ptf`.
8
+
`docker-ptf` is our first goal, because it's a separated docker container and only scripts under `ansible/role/test/files/ptftests` in `sonic-mgmt` repo run in `docker-ptf`.
9
9
10
10
The dependency is not very complicated and it's much easier to start with it.
11
11
@@ -18,7 +18,7 @@ Migration includes 4 stages:
18
18
## Stage 1: Prepare Python3 virtual environment in docker-ptf
19
19
Add Python3 virtual environment in docker-ptf, we will keep Python2 in this stage for incremental migration.
20
20
21
-
[PR](https://github.com/Azure/sonic-buildimage/pull/10599) to address this.
21
+
[PR](https://github.com/sonic-net/sonic-buildimage/pull/10599) to address this.
22
22
23
23
`/root/env-python3/bin/ptf` is installed and will be used for `ptftests` Python3 scripts.
Here is the [doc](https://docs.python.org/3/library/2to3.html) for 2to3.
44
-
44
+
45
45
46
46
If it is not available on your host, you need to first install the following packages:
47
47
@@ -83,14 +83,14 @@ if MACSEC_SUPPORTED:
83
83
84
84
If your scripts involves the following library scripts, please create a **soft link** under `py3` for them after modification. Other remained scripts of Python2 will still use them. They will be used for both sides during the period of migration.
85
85
-`lmp.py`
86
-
-`fib.py`
86
+
-`fib.py`
87
87
-`fib_test.py`
88
88
-`device_connection.py`
89
89
90
90
**Important: These library scripts should be both Python2 and Python3 compatible.**
91
91
92
92
93
-
Please check [this PR](https://github.com/Azure/sonic-mgmt/pull/5490) for reference.
93
+
Please check [this PR](https://github.com/sonic-net/sonic-mgmt/pull/5490) for reference.
94
94
95
95
**3. Update `tests` script to call virtual env ptf**
96
96
@@ -120,13 +120,13 @@ And it will also call your modified ptftests scripts under subfolder `py3`.
120
120
121
121
That's the difference of usage between Python2 and Python3 script.
122
122
123
-
Please take [DHCP Relay PR](https://github.com/Azure/sonic-mgmt/pull/5534) and [dir bcast RP](https://github.com/Azure/sonic-mgmt/pull/5540)for reference.
123
+
Please take [DHCP Relay PR](https://github.com/sonic-net/sonic-mgmt/pull/5534) and [dir bcast RP](https://github.com/sonic-net/sonic-mgmt/pull/5540)for reference.
124
124
125
125
126
126
127
127
**4. Run test cases with correct docker-ptf image to do verification**
128
128
129
-
`2to3` only does some common format or syntax changes, it's not enough.
129
+
`2to3` only does some common format or syntax changes, it's not enough.
130
130
131
131
For Python3, scripts use `ptf 0.9.3` and `scapy 2.4.5`, some packet format could be different, we have to retest scripts manually before submit PR.
0 commit comments