Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 53 additions & 24 deletions ansible/roles/test/tasks/sonic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,32 @@
when: ptf_host is not defined
tags: arp,dhcp_relay

# Set sonic_hwsku
- name: Set sonic_hwsku fact
set_fact:
sonic_hwsku: "{{minigraph_hwsku}}"
tags: always

- name: Set sonic_asic_type fact
set_fact:
sonic_asic_type: broadcom
when: sonic_hwsku in broadcom_hwskus
tags: always

- name: Set sonic_asic_type fact
set_fact:
sonic_asic_type: mellanox
when: sonic_hwsku in mellanox_hwskus
tags: always

- name: Verify interfaces are up
include: interface.yml
tags: always

- name: BGP facts test
include: bgp_fact.yml
tags: bgp_fact

- name: Neighbor mac change test
include: neighbour-mac.yml
tags: neighbour
Expand All @@ -27,10 +49,6 @@
include: ntp.yml
tags: ntp

- name: Test Syslog Basic
include: syslog.yml
tags: syslog

- name: Test SNMP Basic
include: snmp.yml
tags: snmp
Expand All @@ -40,17 +58,13 @@
tags: dhcp_relay
when: minigraph_devices[inventory_hostname]['type'] == "ToRRouter"

- name: Test SNMP CPU
include: snmp/cpu.yml
tags: snmp_cpu
- name: Test ECMP route distribution
include: ecmp.yml
tags: ecmp

- name: Test SNMP Interfaces
include: snmp/interfaces.yml
tags: snmp_interfaces

- name: BGP facts test
include: bgp_fact.yml
tags: bgp_fact
- name: Test Control-Plain policing COPP
include: copp.yml
tags: copp

- name: Fast-reboot test
include: fast-reboot.yml
Expand All @@ -67,6 +81,19 @@
include: bgp_flap.yml
tags: sync

- name: Test Syslog Basic
include: syslog.yml
tags: syslog

- name: Test SNMP CPU
include: snmp/cpu.yml
tags: snmp_cpu
when: minigraph_hwsku == "Force10-S6000" or minigraph_hwsku == "ACS-S6000"

- name: Test SNMP Interfaces
include: snmp/interfaces.yml
tags: snmp_interfaces

- name: Test Interface Flap from Neighbor
include: link_flap.yml
tags: link_flap
Expand All @@ -75,23 +102,25 @@
include: arpall.yml
tags: arp

- name: Decap test
include: decap.yml
tags: decap

- name: Test sensors
include: sensors_check.yml
tags: sensors

- name: Test reboot
include: reboot.yml
tags: reboot

### When calling this FIB test, please add command line of what testbed_type and which PTF docker to test against
### -e "testbed_type=t1-lag ptf_host=10.0.0.200"
- name: Fib test
include: fib.yml
tags: fib

- name: Acl test
include: acltb.yml
tags: acl
### When calling this decap test, please add command line of what testbed_type, dscp_mode, and which PTF docker to test against
#### -e "testbed_type=t1-lag dscp_mode=pipe ptf_host=10.0.0.200"
- name: Decap test
include: decap.yml
tags: decap

- name: Test Everflow
include: everflow.yml
Expand All @@ -108,6 +137,6 @@
include: mem_check.yml
tags: mem_check

- name: Test reboot
include: reboot.yml
tags: reboot
- name: ACL test
include: acltb.yml
tags: acl