-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Testing Guide
Most testing resources live in the sonic-mgmt repo.
Different repos/packages/submodules may also have unit tests of their own that live in that repo (e.g. the Docker Virtual Switch tests in the sonic-swss repo).
Instructions for setting up the physical SONiC testbed can be found here.
We also support a virtualized SONiC testbed that can simulate a running SONiC device and accompanying network topology using KVM and Docker. This test setup does not require any physical switching hardware or any vendor SAI. This testbed should be used to validate the control plane behavior of SONiC features during development and to prevent regressions in the master SONiC image.
Instructions for setting up this testbed can be found here.
The minigraph file (i.e. minigraph.xml
) is the starting point for configuring a SONiC device.
The minigraph is an XML format file that describes the device configuration in a version-neutral and platform-neutral way. Each SONiC device must have a matching minigraph file for device configuration and test.
SONiC minigraph files can be saved locally or in a centralized remote location.
All local minigraph files are saved under ansible/minigraph folder. The file name must match your SONiC device name specified in 'lab' inventory file under the ansible
folder in sonic-mgmt
.
- Configuration
- Configuration with Minigraph (~Sep 2017)
- Generate Minigraph File Based On Testbed Type
All tests (physical or virtual) are run from inside the sonic-mgmt
docker container. Detailed instruction for setting up the sonic-mgmt
container can be found here with the other testbed setup instructions.
Here are some test design docs:
- ACL Test Plan [deprecated]
- ACL Ingress & Egress Test Plan
- DHCP Relay Agent Test Plan
- Everflow Test Plan
- FIB Scale Test Plan
- IPv4 Decapsulation Test
- LAG Feature Test Suite
- VLAN Feature Test Suite
- FDB Scale Test Plan
- BGP GR helper mode test plan
- BGP MP test plan
- IPv4 Decapsulation test
- PFC Watchdog Test Plan
- pfc, Vlan and many other test plan and design documents (click upper right corner 'Pages')
- Other Tests
- Other Test Plans
-
For Users
-
For Developers
-
Subgroups/Working Groups
-
Presentations
-
Join Us