Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
6f6d757
Testbed v2 (#104)
pavel-shirshov Feb 6, 2017
32b4085
[vars]: Change password to ONIE-image defaults (#80)
Feb 6, 2017
9bc8e3b
Bug fix: let lldp neighbor test use eos snmp_community instead of str…
taoyl-ms Feb 8, 2017
21c4baa
Fix sonicdocker path for camv (#114)
Feb 8, 2017
872b58d
[ocp]: correct hwsku for OCPSCH01040DDLF (#119)
lguohan Feb 10, 2017
bcaaa81
Fix issues in OCP ToR minigraphs (#122)
taoyl-ms Feb 15, 2017
5e7ccdc
[minigraph]: Add missing Png into OCPSCH01040DDLF.xml (#124)
taoyl-ms Feb 16, 2017
4dfd358
[service]: Remove syncd.service requirement for swss.service (#125)
marian-pritsak Feb 16, 2017
bd503c2
[docker]: Add database as snmp/lldp container's mount_from (#126)
qiluo-msft Feb 16, 2017
04641af
Removed hard-coded value from docker.py (#106)
pkandrin Feb 24, 2017
0f7fa84
Update documentation for testbed (#131)
pavel-shirshov Mar 2, 2017
8b34ca5
Merge DHCP relay changes from private repo (#133)
jleveque Mar 2, 2017
98826f6
[test]: Update FIB test (#134)
Mar 3, 2017
59f5692
Everflow tests implementation (#130)
oleksandrivantsiv Mar 14, 2017
d7693a6
[test] Fix bgp_fact test to support IPv6 peer (#138)
taoyl-ms Mar 14, 2017
1b79e5e
[syncd]: Update opennslv2 version and mounted docker volumes
Mar 14, 2017
b41b9da
Sync with our private repo (#139)
pavel-shirshov Mar 15, 2017
65765a4
[DHCP Relay Test]: Obtain DHCP servers and their count from minigraph…
jleveque Mar 16, 2017
7b2ba21
IPv4 decapsulation test (#128)
engdorm Mar 20, 2017
957220e
Use correct sort function from natsort library.
oleksandrivantsiv Mar 21, 2017
23ee3c7
[test]: Add FIB test support for T0 topology
Mar 14, 2017
6515d8c
Add fast-reboot test (#142)
pavel-shirshov Mar 21, 2017
2332212
[fast-reboot]: Add missed parameter to count_matched_packets (#145)
pavel-shirshov Mar 21, 2017
5ceeaeb
[boot_onie]: Add playbook to reinstall SONiC through ONIE (#150)
taoyl-ms Mar 24, 2017
9805a78
[readme]: Add new tests to README.test.md; Link flap test references …
jleveque Mar 24, 2017
ff56404
[everflow_tests]: Fix error in everflow.yml (#147)
oleksandrivantsiv Mar 27, 2017
564781c
[everflow_tests]: Do not use variables in include path. (#152)
oleksandrivantsiv Mar 27, 2017
c62a128
[everflow_testbed]: Get info about IPv4 neighbors only. (#153)
oleksandrivantsiv Mar 28, 2017
e5b0c26
[t1-lag]: Make LACP rate normal in t1-lag testbed (#154)
pavel-shirshov Mar 28, 2017
fcf9436
[inventory]: Add t0-64 into veos inventory file (#155)
pavel-shirshov Mar 28, 2017
f942573
[LAG test]: Added LAG traffic tests. (#148)
antonpatenko Mar 28, 2017
9def9bf
[Fast-reboot test]: Update from private repo (#158)
pavel-shirshov Apr 4, 2017
6a58db5
[LAG test]: Remove VM ports testcase (#157)
antonpatenko Apr 4, 2017
6c68ee9
[testbed]: Add t0-64-32 topo (#149)
pavel-shirshov Apr 5, 2017
f2cb393
[fast-reboot]: Adapt the test to 32 port devices (#159)
pavel-shirshov Apr 6, 2017
d7bfb14
Fix ACL config tests. (#156)
oleksandrivantsiv Apr 6, 2017
616c0f1
Enable interfaces state check. (#161)
oleksandrivantsiv Apr 6, 2017
3dc05ac
[lag_test]: Fix issue with tests execution (#162)
oleksandrivantsiv Apr 6, 2017
a85e332
[FIB test]: Update FIB test to support t1-lag topology (#163)
Apr 7, 2017
08fcf9e
[everflow_testbed]: Test everflow session over spine and tor ports. (…
oleksandrivantsiv Apr 12, 2017
ce8c993
[fib_test]: Prevent overlap of source and destination ports (#164)
oleksandrivantsiv Apr 12, 2017
7ec04dc
Add ACL Testbed tests (#127)
andriymoroz-mlnx Apr 19, 2017
3c5786b
[acl test] need root to restart swss during clean up (#165)
taoyl-ms Apr 19, 2017
847ade0
[lag_test]: Fix minor LAG tests issues (#166)
oleksandrivantsiv Apr 24, 2017
f652fff
[everflow_test]: Add run command example. (#169)
oleksandrivantsiv Apr 24, 2017
af2a1fb
Fixed acltb test failure due to conflict with the acl input test (#171)
andriymoroz-mlnx Apr 27, 2017
4b3bcf2
Add ACL ranges test (#168)
andriymoroz-mlnx Apr 28, 2017
f9e5d75
Update README.testbed.md
xinliu-seattle Apr 28, 2017
d0c51f8
Update README.testbed.md
xinliu-seattle Apr 28, 2017
f84992c
Update README.testbed.md
xinliu-seattle Apr 28, 2017
4bcf306
Update README.testbed.md
xinliu-seattle Apr 28, 2017
f8b58df
Update README.testbed.md
xinliu-seattle May 4, 2017
eb3ec02
update server sku
xinliu-seattle May 11, 2017
e6c4095
[everflow_test]: Use separated everflow session for tests. (#177)
oleksandrivantsiv May 16, 2017
896beb0
[loganalyzer]: Refacor log analysis flow (#113)
marian-pritsak May 17, 2017
921108d
Add ACL testbed commands reference (#180)
andriymoroz-mlnx May 17, 2017
5e91dc0
Sync new tests after minigraph change (#185)
maggiemsft May 22, 2017
67e3d8e
add swap_syncd playbook (#186)
maggiemsft May 24, 2017
200c8ef
[README.test.md]: Add command for running sensors test (#187)
jleveque May 24, 2017
8e6bb23
Missed some tests from sonic.yml (#188)
maggiemsft May 24, 2017
a9da657
missed newly added everflow_testbed flag when merging (#189)
maggiemsft May 24, 2017
334b873
update copp test (#190)
maggiemsft May 25, 2017
3db159c
Fix DHCP Relay Test bugs (#192)
jleveque May 30, 2017
e312ba7
[IPinIP]: Add logging info for ipinip (#194)
sihuihan88 Jun 6, 2017
56333dd
[loganalyzer]: Rename sonic_support to generate_dump (#195)
marian-pritsak Jun 6, 2017
86e1a9f
[FIB]: Add more logging messages (#193)
Jun 6, 2017
95584ee
[FIB]: Fix matched port index issue and add more logs
Jun 7, 2017
3ed2150
Timeout a testcase if it lasts more than 5 minutes (#198)
pavel-shirshov Jun 8, 2017
a9d0e80
[FDB]: Add FDB test to validate VLAN FDB entries (#197)
Jun 13, 2017
2a625d0
[TestLAG] add additional/alternative lag_2 test (#199)
maggiemsft Jun 17, 2017
d2742a2
[conn_graph_facts]: Fix bug of parsing the graph file (#201)
maggiemsft Jun 19, 2017
1bf8912
Generate larger LACP packets. Otherwise MLX-4 stopped working (#202)
pavel-shirshov Jun 23, 2017
1b7239c
[MSN2740]: Add sensors data for Mellanox SN2740 platform. (#205)
oleksandrivantsiv Jun 30, 2017
39187f0
[MSN2740]: Add support of Mellanox SN2740 to everflow test. (#206)
oleksandrivantsiv Jun 30, 2017
5e5a07d
[DHCP Relay test]: Update test to verify new Option 82 field contents…
jleveque Jul 5, 2017
f11e48b
[TestCOPP] Add test configuration parameter for number of TX packets …
Jul 12, 2017
d231911
[test]: Add BGP speaker test (#209)
sihuihan88 Jul 17, 2017
d695996
TTL of BGP packets should be 1. We're using EBGP (#212)
pavel-shirshov Jul 18, 2017
b9e68c8
created xml graph file is still using old name (#213)
maggiemsft Jul 20, 2017
03e9cdc
[minigraph] generate device under test minigraph file (#207)
maggiemsft Jul 20, 2017
860433c
[bug fix]: use inventory_hostname in dev_metadata.j2 (#215)
lguohan Jul 24, 2017
5fa8736
updata testbed playbook for ubuntu 17.04 (#216)
lguohan Jul 25, 2017
c5f998c
configure bring up server trunk port in playbook (#218)
lguohan Jul 25, 2017
daeb128
split testbed readme into multiple sections (#217)
lguohan Jul 25, 2017
89c94f0
enable gather facts for the server to get os distribution (#219)
lguohan Jul 26, 2017
cdf961d
refactor fanout_connect to use host_vars already defined (#220)
lguohan Jul 26, 2017
12e8c8f
[MinigraphTemplate]add management v6 address and minigraph paser to i…
maggiemsft Jul 26, 2017
00a4a39
Ansible run roles even when: is false. Fix the issue with running rol…
lguohan Jul 27, 2017
c88c151
[fast-reboot]: New version of fast reboot test (#204)
pavel-shirshov Jul 27, 2017
6ff1afb
[minigraph] add t0-64 port minigraph tempalte (#227)
maggiemsft Jul 28, 2017
169a72f
add generate/deploy minigraph in testbed-cli (#231)
lguohan Jul 28, 2017
05b93a0
Temporary fix for lldp test code (#229)
qiluo-msft Jul 28, 2017
b3106e9
[testbed]: put mgmt interface of VMs into another vrf (#210)
pavel-shirshov Jul 31, 2017
b7d7a3e
[loganalizer]: Simplify init/analyze procedure for loganalyzer. (#230)
oleksandrivantsiv Jul 31, 2017
128d5e4
[test]: Update BGP speaker test
Jul 27, 2017
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Compiled Python files
ansible/plugins/filter/*.pyc
18 changes: 9 additions & 9 deletions ansible/README.deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ and public [sonicdev Docker registry](https://sonicdev-microsoft.azurecr.io/).
## Deploy SONiC

- Update [inventory](/ansible/inventory/) file with correct information for your environment.
* ansible_host = management ip address
* sonic_hwsku = Supported Hardware SKU, e.g. Force10-S6000, ACS-MSN2700
- ansible_host = management ip address
- sonic_hwsku = Supported Hardware SKU, e.g. Force10-S6000, ACS-MSN2700
- Update [group_vars/sonic/vars](/ansible/group_vars/sonic/vars/) file with:
* Replace ```sonicadmin_user``` and ```ansible_ssh_user``` with the username you built into the baseimage
* Replace ```sonicadmin_initial_password``` with the password you built into baseimage.
* Update ```[ntp,syslog,dns]_servers``` with a list of your server IPs for these services.
* Update APT repository if you are using private repo.
* Update Docker [registry](/ansible/vars/docker_registry.yml/) if you are using private registry.
- Replace `sonicadmin_user` and `ansible_ssh_user` with the username you built into the baseimage
- Replace `sonicadmin_initial_password` with the password you built into baseimage.
- Update `[ntp,syslog,dns]_servers` with a list of your server IPs for these services.
- Update APT repository if you are using private repo.
- Update Docker [registry](/ansible/vars/docker_registry.yml/) if you are using private registry.
- Update management IP of switch1
* Find the ManagementIPInterfaces xml block in [minigraph/switch1.xml](/ansible/minigraph/switch1.xml/) and change both IP addresses.
- Find the ManagementIPInterfaces xml block in [minigraph/switch1.xml](/ansible/minigraph/switch1.xml/) and change both IP addresses.

- Run the playbook:

```
ansible-playbook deploy_sonic.yml -i inventory --limit switch1 --become -e "bootstrap=yes"
```

Note: ```-e "bootstrap=yes"``` passes a special flag to update the initial admin password to the permanent password. This is not required after the first run.
*Note: `-e "bootstrap=yes"` passes a special flag to update the initial admin password to the permanent password. This is not required after the first run.*
6 changes: 3 additions & 3 deletions ansible/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Overview of SONiC deployment, testbed setup and tests

This ansible playbook consists following functionalities:
This ansible playbook consists of the following functionality:
- [Deploy SONiC](README.deploy.md)
- [Setup SONiC testbed](README.testbed.md)
- [Run SONiC tests](README.test.md)
Expand All @@ -17,9 +17,9 @@ git submodule update --init --recursive
make
sudo make install
```
Note: v2.0.0.2 is the currently tested Ansible version. Other versions may not work correctly.
*Note: v2.0.0.2 is the currently tested Ansible version. Other versions may not work correctly.*

# Ansible playbood layout
# Ansible playbook layout

```
# Ansible top level file and directory structure
Expand Down
77 changes: 64 additions & 13 deletions ansible/README.test.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,87 @@
# ansible playbooks for SONiC testing
# Ansible Playbooks for Testing SONiC

## Requirements
- A testbed needed to be set up before hand. See [Testbed](README.testbed.md) for more information.
-- Depending on the test, either a PTF testbed or a VM set testbed might be required.

## Run Tests
- Replace {DUT_NAME} in each command line with the host name of switch under test.
## How to Run Tests
- Replace {DUT_NAME} in each command line with the host name of switch under test
- Replace {PTF_HOST} in each command line with the host name or IP of the PTF testbed host
- Replace {TESTBED_TYPE} in each command line with the type of the testbed being used

### NTP test
### ACL tests
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags ntp
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags acltb_configure --extra-vars "run_dir=/tmp testbed_type={TESTBED_TYPE} ptf_host={PTF_HOST}"
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags acltb_test --extra-vars "run_dir=/tmp testbed_type={TESTBED_TYPE} ptf_host={PTF_HOST}"
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags acltb_cleanup --extra-vars "run_dir=/tmp testbed_type={TESTBED_TYPE} ptf_host={PTF_HOST}"
```
- Requires switch connected to a PTF testbed

### Syslog test
### ARP tests
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags syslog
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags arp --extra-vars "ptf_host={PTF_HOST}"
```
- Requires switch connected to a PTF testbed

### SNMP tests
### BGP facts verification test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags snmp,snmp_cpu,snmp_interfaces
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags bgp_fact
```
- Requires switch connected to a VM set testbed

### CoPP test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags copp --extra-vars "ptf_host={PTF_HOST}"
```
- Requires switch connected to a PTF testbed

### DHCP relay test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags dhcp_relay --extra-vars "ptf_host={PTF_HOST}"
```
- Requires switch connected to a PTF testbed

### FIB test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --tags fib --extra-vars "testbed_type={TESTBED_TYPE} ptf_host={PTF_HOST}"
```
- Requires switch connected to a PTF testbed

### Fast-Reboot test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags fast_reboot --extra-vars "ptf_host={PTF_HOST}"
```
- Requires switch connected to a PTF testbed

### LLDP test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME},lldp_neighbors --become --tags lldp
```
- Required switch connected to a VM set testbed.
- Requires switch connected to a VM set testbed

### BGP facts verification test
### Link flap test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags bgp_fact
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME}, --become --tags link_flap
```
- Requires switch connected to a VM set testbed

### NTP test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags ntp
```

### SNMP tests
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags snmp,snmp_cpu,snmp_interfaces
```

### Sensors test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags sensors
```

### Syslog test
```
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags syslog
```
- Required switch connected to a VM set testbed.

Loading