Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
c8e2023
Introduce framework for filtering/selecting pluggable components for …
rawal01 Feb 11, 2021
e1d9265
[common API] Check for is container 'running' rather than 'exists' (#…
smaheshm Feb 12, 2021
70c7a95
[test_show_bgp_summary] Change prefixReceivedCount key due to Frr Upd…
AndriiLozovyi Feb 16, 2021
5f1b2c1
[ci]: fix the kvm image download path
lguohan Feb 16, 2021
e22724d
[device map] fix device map creation issue and caching issue (#2978)
yxieca Feb 16, 2021
a39bd2d
[wr_arp] add timeout to thread join (#2986)
yxieca Feb 16, 2021
d097645
[dual tor]: Move y cable simulator driver injection to pretest (#2981)
theasianpianist Feb 16, 2021
1081f70
Update watchdog.yaml with arista watchdog config (#2972)
andywongarista Feb 16, 2021
6ede943
Modified testcase to use enum_rand_one_per_hwsku_frontend_hostname (#…
oxygen980 Feb 16, 2021
50f5130
Add a fixture to disable thermal policy (#2953)
Junchao-Mellanox Feb 16, 2021
bf26ec9
[dualtor]: Add utilities for dual ToR mocking (#2945)
theasianpianist Feb 16, 2021
542f53d
[Platform API][Thermal]: Include 0 as a valid low threshold, temperat…
ArunSaravananBalachandran Feb 17, 2021
5ed5cab
BGP convergence test plan for benchmark performance (#2926)
kamalsahu0001 Feb 17, 2021
ce13221
DualTor data plane IO test utilities (#2901)
vaibhavhd Feb 17, 2021
2d7fe05
[nat] skip nat test when image doesn't have nat feature enabled (#2990)
yxieca Feb 17, 2021
8148a1c
Pdu and Console connection info in connection graph (#2257)
sujinmkang Feb 17, 2021
eae4d47
[kvmtest]: Add dual ToR ARP tests to KVM test suite (#2895)
theasianpianist Feb 17, 2021
dbbad57
[pfcwd] Disable fake storm on Mellanox platforms (#2991)
neethajohn Feb 17, 2021
06424e9
[snmp] Added new snmp test case (#2963)
AndriiLozovyi Feb 17, 2021
1b8d3fe
[script]: add script to download artifacts from azure pipeline (#2956)
lguohan Feb 17, 2021
ec8185a
Parse platform.json, hwsku.json for generate minigraph (#2887)
dmytroxshevchuk Feb 17, 2021
4f88aa2
Fix bug which hangs the test if warmboot has an issue (#2994)
vaibhavhd Feb 17, 2021
f4b4c2d
sanity check fixes for chassis; and cache cleanup at the end of pytes…
sanmalho-git Feb 18, 2021
e893f73
[rdma] Test PFC watchdog's impact on runtime traffic (#2979)
baiwei0427 Feb 18, 2021
a0836c8
[testbed.csv] Add new fields (#2822)
lolyu Feb 18, 2021
5798bd6
Initial voq chassis test cases and helpers (#2826)
tcusto Feb 18, 2021
f679ca6
Test plan for Distributed VoQ architecture (#2659)
tcusto Feb 18, 2021
aa82911
[rdma] Fix var name and add check for flow completion in max attempts…
baiwei0427 Feb 18, 2021
856c106
[Arista] Update Arista 7260 lab example data (#2948)
zzhiyuan Feb 18, 2021
33631db
[pfc] Refactor pfc pause test to use existing libs and code cleanup (…
neethajohn Feb 19, 2021
0d60002
[dualtor]Implement traffic distribution utility. (#2968)
bingwang-ms Feb 19, 2021
a4cc76e
Enhance robustness and add log rotation support (#2936)
wangxin Feb 19, 2021
9b41a7a
Update y_cable_simulator_client to address SFP issue. (#2952)
bingwang-ms Feb 19, 2021
cb81ec8
[garp_service]: Create garp_service to run on PTF (#2992)
theasianpianist Feb 19, 2021
a1a713e
Remove dependency of deprecated fib plugin for test_dir_bcast.py (#3000)
wangxin Feb 19, 2021
4cac8b8
Add default cred for vlab-04 in veos_vtb inventory (#3001)
wangxin Feb 20, 2021
0e50afc
[dualtor] Add tunnel traffic utility (#2912)
lolyu Feb 20, 2021
c60441d
Revert "Parse platform.json, hwsku.json for generate minigraph (#2887…
yxieca Feb 20, 2021
ddf2332
Fix vxlan decap testcase failure in warmup due to DUT connection issu…
gechiang Feb 20, 2021
9085473
[advanced-reboot] improve logging and assertions (#2997)
stepanblyschak Feb 21, 2021
3a101fc
[dualtor-56]: Correct disabled host interface 9 (#3010)
theasianpianist Feb 22, 2021
8d7d72a
[icmp_responder]: Fix crash on non ICMP packets (#3007)
theasianpianist Feb 22, 2021
5c80d9d
[pdu manager] introduce pdu manager (#3013)
yxieca Feb 22, 2021
b0890db
Added bgpmon verification for test_bgp_allowlist (#2977)
abdosi Feb 22, 2021
2ffe9c7
Stop/Skip pfcwd on dual tor testbed (#3023)
neethajohn Feb 23, 2021
df5d40e
Azure pipeline for testing continuous warmboot on KVM image (#3019)
vaibhavhd Feb 23, 2021
cbd4f1f
[dualtor] Update mux simulator control utility (#3002)
bingwang-ms Feb 23, 2021
63c3781
[testbed] setup-container minor fixes (#3003)
myronsosyak Feb 23, 2021
ca29a3c
Refactoring the drop_counters test to reuse existing methods (#2998)
vaibhavhd Feb 24, 2021
795d794
[port_utils] Add port alias mapping for z9332f (#3029)
daall Feb 24, 2021
0e97bba
[QoS] Update QoS pytests to use the multi-ASIC framework. (#2993)
smaheshm Feb 24, 2021
7e92609
Modify test_ro_user_allowed_command and `test_ro_user_banned_command…
arlakshm Feb 24, 2021
2e6847c
[mutli-asic][vs]: Add support to test multi-asic vs with four asic an…
SuvarnaMeenakshi Feb 25, 2021
45fdbb9
[testplan/console] Add Console Switch Test Plan (#2865)
Blueve Feb 25, 2021
0756f4c
Implenemt playbook to recover vmhost server automatically (#2800)
bingwang-ms Feb 25, 2021
20bda27
Support shared headroom pool on top of dynamic buffer calculation (#…
stephenxs Feb 25, 2021
088eb4f
On Nvidia/Mellanox platform the SFP related platform API are not migr…
keboliu Feb 25, 2021
5e1897a
[qos] LAG ports in T1 TOPO need to be removed in Mellanox devices (#…
smaheshm Feb 25, 2021
936bcac
[Platform API] Fixes for platform API test cases (#2876)
antoninamelnyk Feb 25, 2021
50c74bb
Add hwsku Nokia-7215 support in port_utils.py (#3028)
rawal01 Feb 26, 2021
78d809d
Initial test plan document for IxANVL BGP conformance test (#3030)
isgmano Feb 26, 2021
1ea29a1
Remove bounds in thermal tests (#2995)
zzhiyuan Feb 26, 2021
6b43806
Optimize dynamic minimum and psu fan speed test cases (#3038)
Junchao-Mellanox Feb 26, 2021
cdf78e3
Converting legacy platform tests for a T2 chassis, adding validation …
sanmalho-git Feb 26, 2021
8104e82
Update server recovery script (#3037)
bingwang-ms Feb 26, 2021
bc32586
[snmp] Added snmp memory test case (#3027)
AndriiLozovyi Feb 26, 2021
e92e2b8
[dualtor] Server to T1 traffic verification fixes (#2999)
vaibhavhd Feb 26, 2021
f845851
[dualtor][tunnel] Add ipinip testcase (#3014)
lolyu Feb 26, 2021
c0bd153
Added support to enum_rand_one_asic_index (#3017)
oxygen980 Feb 26, 2021
7d3e674
[platform] Update 'show platform psustatus' tests to handle new expan…
jleveque Feb 26, 2021
075c9e1
Increased MAX fan sped tolerance to 15 percent (#3046)
yvolynets-mlnx Feb 26, 2021
f0178f8
[SAI QoS Test] modify DSCP Queue Mapping SAI QoS test to handle desti…
smaheshm Feb 26, 2021
d71da38
Include th3 asic in get_asic_name function (#3044)
chitra-raghavan Feb 26, 2021
16919df
SER : Skip memory address for th3 platform (#3032)
chitra-raghavan Feb 26, 2021
eebe8cb
Fix issue: test case should be marked as failure if cannot get PSU fa…
Junchao-Mellanox Feb 26, 2021
486e6c5
Add support for fast and cold upgrade in test_upgrade_path (#3047)
vaibhavhd Feb 26, 2021
4b129cc
Create dual_tor orchagent/tunnel test plan (#2784)
prsunny Feb 26, 2021
67d5be2
[testplan]: Add dual ToR test plan (#2778)
theasianpianist Feb 26, 2021
ff166b0
[vxlan decap] make sure that count_matched_packets_helper will return…
yxieca Feb 27, 2021
eccce7d
[pytest] Test the feature of monitoring critical processes by Supervi…
yozhao101 Feb 27, 2021
1b4d0d8
[dualtor] Enhance IPinIP tunnel traffic distribution util. (#3045)
bingwang-ms Mar 1, 2021
6ef0848
[multi-asic] Enhanced BBR and allow-list testcases for multi-asic pla…
abdosi Mar 1, 2021
c12a893
Update console connection tool (#2829)
bingwang-ms Mar 1, 2021
22c43c2
[SNMP]: Add SNMP test case to test IpCidrRouteTable MIB (#2934)
SuvarnaMeenakshi Mar 1, 2021
dc206a2
Create new topo for SKU Mellanox-SN2700-D40C8S8 (#3058)
qiluo-msft Mar 1, 2021
bec8443
Higher resolution image for t2 topology (#3059)
shubav Mar 2, 2021
de9c33f
Implement a common utility for retrieving crm nexthop counter. (#3012)
bingwang-ms Mar 2, 2021
724e05f
[pdu controller] refactoring snmp pdu controller (#3041)
yxieca Mar 2, 2021
b38562a
multi-asic support for test_cacl_application.py (#3070)
abdosi Mar 2, 2021
7383082
[sanity check]: Add mux simulator sanity check (#2862)
theasianpianist Mar 2, 2021
b485dc1
Integrate conn_graph_facts into devutils (#3065)
bingwang-ms Mar 3, 2021
db59b4f
Implement fixtures to get selected/unselected DUT host (#3071)
bingwang-ms Mar 3, 2021
5f18513
Modified tests/ipfwd/test_mtu.py testcase to run on T2 topology (#2860)
oxygen980 Mar 3, 2021
504fd87
Fix KeyError in test_thermal_control_psu_absence (#3063)
Junchao-Mellanox Mar 3, 2021
8306390
[Multiasic]: Update Interfaces MIB testcase to test multiasic platfor…
SuvarnaMeenakshi Mar 3, 2021
f1c0d35
[dualtor] Add utilities to handle ip neighbor (#3077)
lolyu Mar 3, 2021
5300aa9
[dualtor] Refact test_ipinip (#3076)
lolyu Mar 3, 2021
f13e2a7
[pfcwd] Add correct topo for pfcwd wb test (#3068)
neethajohn Mar 3, 2021
fb2a613
[Dynamic buffer calc] Enhance the test case for exceeding the headroo…
stephenxs Mar 3, 2021
bb1cdaa
Fix missed link file in templates (#3083)
Pterosaur Mar 3, 2021
147792f
[qos] Update PFC Xoff test to handle LAG ports (#3072)
smaheshm Mar 3, 2021
e8d25b1
Add test for soft-reboot (#3052)
sujinmkang Mar 3, 2021
90248f3
Refactor code for generating random ip (#3080)
bingwang-ms Mar 4, 2021
c61b15a
[rdma] Test if mmu change has impact on pfcwd functionality (#3008)
neethajohn Mar 4, 2021
994c9e8
Break devices.py into multiple files (#3064)
wangxin Mar 4, 2021
92a8b70
Update BGP allow list testing to support t1-64-lag topology (#3075)
wangxin Mar 4, 2021
78d2df9
[VM]: Support SONiC VM on the server (#3036)
Pterosaur Mar 4, 2021
cf04139
Add missing conn_graph_helper.py for devutils (#3084)
bingwang-ms Mar 4, 2021
5331919
[dualtor] Fix import error (#3085)
lolyu Mar 4, 2021
b804da3
[acl] Re-enable IPv6 ACL tests for 201911 (#3088)
daall Mar 4, 2021
75551eb
Fix invalid pfc_fanout_interface caused by onyx name convension chang…
Junchao-Mellanox Mar 4, 2021
675a2b0
[Vrf] Change test_vrf topology marker to t0 (#3066)
AndriiLozovyi Mar 4, 2021
38eb9b0
[NAT] Added an argument to enable NAT feature on DUT (#3067)
AndriiLozovyi Mar 4, 2021
3b432d6
[dualtor]: Update control plane utils (#3089)
theasianpianist Mar 4, 2021
884f25c
[dualtor]: Fix `expect_db_values` arguments order (#3095)
theasianpianist Mar 4, 2021
4cca9ee
[dualtor_mock]: Various improvements: (#3092)
theasianpianist Mar 4, 2021
6429d31
Put dualtor related constants in common place (#3093)
wangxin Mar 4, 2021
60d73a0
Add tor_mux_intfs fixture and use it in dual tor mock utility (#3094)
wangxin Mar 5, 2021
b478b26
[techsupport][pytest] dd pytest for show techsupport commands (#3086)
smaheshm Mar 5, 2021
1437820
[dualtor]: Make `force_active_tor` a fixture (#3096)
theasianpianist Mar 5, 2021
5d42222
[rdma] Test PFC watchdog in a three-node topology with 2 senders and …
baiwei0427 Mar 5, 2021
bd1e4a8
Send the t1 to server traffic to all servers (#3054)
vaibhavhd Mar 6, 2021
93f4e32
[pytest] Add get_test_server_visible_vars (#3102)
lolyu Mar 8, 2021
b4b6d21
[dualtor] Add server traffic utility (#3098)
lolyu Mar 9, 2021
bc6b35e
[bgp] Update timer test to use correct neighbor type (#3109)
prsunny Mar 9, 2021
6bfba6f
[qos] Align SonicAsic command args to the new method format (#3108)
neethajohn Mar 9, 2021
2a7bc60
[multi_asic_host]: Add __repr__ method (#3090)
theasianpianist Mar 9, 2021
2715ded
[multi-asic][minigraph]: Add changes to support minigraph generation …
SuvarnaMeenakshi Mar 9, 2021
11ed1e7
[topology] Add New Topology t0-80 (#2967)
chitra-raghavan Mar 9, 2021
42bbc2e
Add verbose option for suppressing unnecessary log (#3087)
wangxin Mar 10, 2021
79887ad
Common timer values for testing watchdog API for DellEMC platforms (#…
vpsubramaniam Mar 10, 2021
17dc195
Updated test_po_cleanup.py for multi-asic platforms. (#3069)
abdosi Mar 10, 2021
986592b
[multi-asic][minigraph]: Modify minigraph templates for multi-asic p…
SuvarnaMeenakshi Mar 10, 2021
57b0b83
Change to use asic_instance() API in all test cases (#3118)
abdosi Mar 10, 2021
d1f3510
[minigraph_facts] support PortChannel inside Vlan, improve module fai…
qiluo-msft Mar 10, 2021
5b0d6f6
[port_utils] Update port_utils for new 9332 port layout (#3121)
daall Mar 11, 2021
11c7344
[topo_facts]: Modify the 'type' argument used to 'neigh_type' to (#3126)
SuvarnaMeenakshi Mar 11, 2021
8a41e99
[Platform API][SFP] Log warnings, don't fail test if newly-added xcvr…
jleveque Mar 11, 2021
853c08d
Add 'testbed-cli.sh announce-routes' (#3127)
wangxin Mar 12, 2021
d932004
[pytest] Improve 'cached' decorator (#3112)
lolyu Mar 12, 2021
902b755
[dualtor]: Add normal operation test cases (#3101)
theasianpianist Mar 12, 2021
7d120a2
DHCP Relay Testing for Dual ToR (#3042)
Mar 12, 2021
38ad99a
[Sub-ports] Added new sub-ports test cases (#2669)
OleksandrKozodoi Mar 12, 2021
0db62d7
multi-asic support for copp testcase (#3060)
abdosi Mar 12, 2021
dc0f74a
[rdma] Test PFC watchdog under all-to-all traffic pattern (#3129)
baiwei0427 Mar 12, 2021
6036969
[acl] Use config CLI instead of sonic-cfggen to create ACL table (#3131)
daall Mar 12, 2021
6335756
[test_ipinip] Strip ip prefix (#3140)
lolyu Mar 15, 2021
cd06b42
Improve post test sanity check (#3128)
wangxin Mar 15, 2021
b0bebd5
Cleanup cache before run pytest in run_tests.sh (#3132)
wangxin Mar 15, 2021
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
2 changes: 1 addition & 1 deletion .azure-pipelines/run-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
source: specific
project: build
pipeline: 1
artifact: sonic-buildimage.kvm
artifact: sonic-buildimage.vs
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
displayName: "Download sonic kvm image"
Expand Down
35 changes: 28 additions & 7 deletions ansible/config_sonic_basedon_testbed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
- fail: msg="The DUT you are trying to run test does not belongs to this testbed"
when: inventory_hostname not in testbed_facts['duts']

- name: Set default num_asic
set_fact:
num_asics: 1
when: num_asics is not defined

- name: Set default dut index
set_fact:
dut_index: "{{ testbed_facts['duts_map'][inventory_hostname]|int }}"
Expand All @@ -62,15 +67,15 @@
when: "testbed_facts['vm_base'] != ''"
when: testbed_name is defined

- topo_facts: topo={{ topo }}
- topo_facts: topo={{ topo }} hwsku={{ hwsku }}
delegate_to: localhost

- name: find interface name mapping and individual interface speed if defined from dut
port_alias: hwsku="{{ hwsku }}"
port_alias: hwsku="{{ hwsku }}" num_asic="{{ num_asics }}"
when: deploy is defined and deploy|bool == true

- name: find interface name mapping and individual interface speed if defined with local data
port_alias: hwsku="{{ hwsku }}"
port_alias: hwsku="{{ hwsku }}" num_asic="{{ num_asics }}"
delegate_to: localhost
when: deploy is not defined or deploy|bool == false

Expand Down Expand Up @@ -100,10 +105,6 @@
delegate_to: localhost
when: "'dualtor' in topo"

- name: generate y_cable simulator driver
include_tasks: dualtor/config_y_cable_simulator.yml
when: "'dualtor' in topo"

- name: set default vm file path
set_fact:
vm_file: veos
Expand All @@ -126,6 +127,12 @@
delegate_to: localhost
when: "('host_interfaces_by_dut' in vm_topo_config) and ('tor' in vm_topo_config['dut_type'] | lower)"

- name: find downlink portchannel configuration for T0 topology
set_fact:
portchannel_config: "{{ vm_topo_config['DUT']['portchannel_config'] | default({})}}"
delegate_to: localhost
when: "('host_interfaces_by_dut' in vm_topo_config) and ('tor' in vm_topo_config['dut_type'] | lower)"

- name: find any tunnel configurations
tunnel_config:
vm_topo_config: "{{ vm_topo_config }}"
Expand All @@ -149,6 +156,15 @@
- "{{ interface_to_vms }}"
- "ports"

# create map of VM to asic interface names
- name: find all interface asic names
set_fact:
vm_asic_ifnames: "{{ vm_asic_ifnames | default({}) | combine({item.0.name: vm_asic_ifnames[item.0.name]|default([]) + [ front_panel_asic_ifnames[item.1]] }) }}"
with_subelements:
- "{{ interface_to_vms }}"
- "ports"
when: front_panel_asic_ifnames != []

- name: create minigraph file in ansible minigraph folder
template: src=templates/minigraph_template.j2
dest=minigraph/{{ inventory_hostname}}.{{ topo }}.xml
Expand Down Expand Up @@ -352,6 +368,11 @@

- debug: msg={{ docker_status.stdout_lines }}

- name: start topology service for multi-asic platform
become: true
shell: systemctl start topology.service
when: start_topo_service is defined and start_topo_service|bool == true

- name: execute cli "config load_minigraph -y" to apply new minigraph
become: true
shell: config load_minigraph -y
Expand Down
28 changes: 28 additions & 0 deletions ansible/devutil/conn_graph_helper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import os
import inspect
import sys
import imp

CONN_GRAPH_LOG = "/tmp/conn_graph_debug.txt"

def get_conn_graph_facts(hostnames):
"""
@summary: Load conn_graph_facts from conn_graph_facts.xml
@param hostnames: A list of hostname
@return: A dict, conn_graph_facts
"""
filename = inspect.getframeinfo(inspect.currentframe()).filename
ansible_path = os.path.join(os.path.dirname(os.path.abspath(filename)), '../')
if ansible_path not in sys.path:
sys.path.append(ansible_path)

utils = imp.load_source('conn_graph_utils', os.path.join(ansible_path, 'library/conn_graph_facts.py'))
utils.LAB_GRAPHFILE_PATH = os.path.join(ansible_path, utils.LAB_GRAPHFILE_PATH)
utils.debug_fname = CONN_GRAPH_LOG

lab_graph = utils.find_graph(hostnames=hostnames, part=True)
succeed, results = utils.build_results(lab_graph=lab_graph, hostnames=hostnames, ignore_error=True)
if not succeed:
print("Parse conn graph failes msg = {}".format(results))
return {'device_pdu_info': {}, 'device_pdu_links': {}}
return results
Loading