Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ansible/group_vars/sonic/variables
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ broadcom_hwskus: [ 'ACS-S6000', 'ACS-S6000-Q24S32', 'ACS-N3132', 'Force10-S6000'
broadcom_td2_hwskus: ['Force10-S6000', 'Force10-S6000-Q24S32', 'Arista-7050-QX32', 'Arista-7050-QX-32S', 'Nexus-3164', 'Arista-7050QX32S-Q32']
broadcom_td3_hwskus: ['Arista-7050CX3-32S-C32', 'Arista-7050CX3-32S-D48C8']
broadcom_th_hwskus: ['Force10-S6100', 'Arista-7060CX-32S-C32', 'Arista-7060CX-32S-C32-T1', 'Arista-7060CX-32S-D48C8', 'Celestica-DX010-C32', "Seastone-DX010" ]
broadcom_th2_hwskus: ['Arista-7260CX3-D108C8', 'Arista-7260CX3-C64', 'Arista-7260CX3-Q64']
broadcom_th2_hwskus: ['Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10', 'Arista-7260CX3-C64', 'Arista-7260CX3-Q64']
broadcom_th3_hwskus: ['DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32']
broadcom_th4_hwskus: ['Arista-7060DX5-32', 'Arista-7060DX5-64S']
broadcom_th5_hwskus: ['Arista-7060X6-64DE', 'Arista-7060X6-64DE-64x400G', 'Arista-7060X6-64DE-O128S2', 'Arista-7060X6-64DE-256x200G', 'Arista-7060X6-64PE', 'Arista-7060X6-64PE-64x400G', 'Arista-7060X6-64PE-O128S2', 'Arista-7060X6-64PE-256x200G', 'Arista-7060X6-64PE-C256S2', 'Arista-7060X6-64PE-C224O8']
Expand Down
3 changes: 1 addition & 2 deletions ansible/module_utils/port_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ def get_port_alias_to_name_map(hwsku, asic_name=None):
if hwsku == "Arista-7260CX3-D108C10":
# The first 2 ports are 100G
s100G_ports.extend([x for x in range(1, 3)])

if hwsku == "Arista-7260CX3-D108C8-AILAB":
elif hwsku == "Arista-7260CX3-D108C8-AILAB":
s100G_ports = [x for x in range(45, 53)]
elif hwsku == "Arista-7260CX3-D108C8-CSI":
# Treat 40G port as 100G ports
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/dir_bcast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
when: testbed_type is not defined

- fail: msg="testbed_type {{testbed_type}} is invalid."
when: testbed_type not in ['t0', 't0-16', 't0-56', 't0-64', 't0-64-32', 't0-116']
when: testbed_type not in ['t0', 't0-16', 't0-56', 't0-64', 't0-64-32', 't0-116', 't0-118']

- include_vars: "vars/topo_{{testbed_type}}.yml"

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/fdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
when: testbed_type is not defined

- fail: msg="testbed_type {{test_type}} is invalid"
when: testbed_type not in ['t0', 't0-64', 't0-116', 't0-52']
when: testbed_type not in ['t0', 't0-64', 't0-116', 't0-118', 't0-52']

- name: Gather minigraph facts about the device
minigraph_facts: host={{inventory_hostname}}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/fdb_mac_expire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
when: testbed_type is not defined

- fail: msg="testbed_type {{test_type}} is invalid"
when: testbed_type not in ['t0', 't0-64', 't0-64-32', 't0-116', 't0-52']
when: testbed_type not in ['t0', 't0-64', 't0-64-32', 't0-116', 't0-118', 't0-52']

- name: set fdb_aging_time to default if no user input
set_fact:
Expand Down
12 changes: 6 additions & 6 deletions ansible/roles/test/tasks/pfc_wd/choose_test_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@

- set_fact:
random_seed: "{{range(4) | list | shuffle}}"
when: testbed_type in ["t0", "t0-64", "t0-116"]
when: testbed_type in ["t0", "t0-64", "t0-116", "t0-118"]

- set_fact:
pfc_wd_test_portchannel: "{{minigraph_portchannel_interfaces[0].attachto}}"
when: testbed_type in ["t0", "t0-64", "t0-116"]
when: testbed_type in ["t0", "t0-64", "t0-116", "t0-118"]

- set_fact:
pfc_wd_rx_portchannel: "{%for p in minigraph_portchannel_interfaces if p['attachto']!=pfc_wd_test_portchannel %}{%if loop.first %}{{p['attachto']}}{%endif%}{%endfor%}"
when: testbed_type in ["t0", "t0-64", "t0-116"]
when: testbed_type in ["t0", "t0-64", "t0-116", "t0-118"]

- set_fact:
pfc_wd_test_port: "{{minigraph_portchannels[pfc_wd_test_portchannel]['members'][0]}}"
pfc_wd_rx_port: "{{minigraph_portchannels[pfc_wd_rx_portchannel]['members'][0]}}"
when: testbed_type in ["t0", "t0-64", "t0-116"]
when: testbed_type in ["t0", "t0-64", "t0-116", "t0-118"]

- set_fact:
pfc_wd_test_port_addr: "{%for p in minigraph_portchannel_interfaces%}{%if p['attachto']==pfc_wd_test_portchannel and p['addr']|ipv4%}{{p['addr']}}{%endif %}{%endfor%}"
pfc_wd_rx_port_addr: "{%for p in minigraph_portchannel_interfaces%}{%if p['attachto']==pfc_wd_rx_portchannel and p['addr']|ipv4%}{{p['addr']}}{%endif %}{%endfor%}"
when: testbed_type in ["t0", "t0-64", "t0-116"]
when: testbed_type in ["t0", "t0-64", "t0-116", "t0-118"]

- set_fact:
pfc_wd_test_port_id: "{{minigraph_port_indices[pfc_wd_test_port]}}"
pfc_wd_rx_port_id: "{{minigraph_port_indices[pfc_wd_rx_port]}}"
when: testbed_type in ["t0", "t0-64", "t0-116"]
when: testbed_type in ["t0", "t0-64", "t0-116", "t0-118"]
8 changes: 4 additions & 4 deletions ansible/roles/test/tasks/pfc_wd/iterate_portchannels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@

- set_fact:
p: "{{pfc_wd_test_port[1]}}"
when: rx_pc_port is defined and test_pc_port is defined and testbed_type in ['t0-64', 't0-116', 't1-lag']
when: rx_pc_port is defined and test_pc_port is defined and testbed_type in ['t0-64', 't0-116', 't0-118', 't1-lag']

- set_fact:
test_ports: "{{ test_ports | combine( {p:{'test_neighbor_addr':pfc_wd_test_neighbor_addr, 'rx_port':pfc_wd_rx_port, 'rx_neighbor_addr': pfc_wd_rx_neighbor_addr, 'peer_device':neighbors[p]['peerdevice'], 'test_port_id': minigraph_port_indices[p], 'rx_port_id': pfc_wd_rx_port_id.split(' ') | list, 'test_portchannel_members': pfc_wd_test_port_id.split(' ') | list, 'test_port_type':'portchannel' }}) }}"
when: rx_pc_port is defined and test_pc_port is defined and testbed_type in ['t0-64', 't0-116', 't1-lag']
when: rx_pc_port is defined and test_pc_port is defined and testbed_type in ['t0-64', 't0-116', 't0-118', 't1-lag']

- set_fact:
p: "{{pfc_wd_rx_port[0]}}"
Expand All @@ -62,11 +62,11 @@

- set_fact:
p: "{{pfc_wd_rx_port[1]}}"
when: first_pair and testbed_type in ['t0-64', 't0-116']
when: first_pair and testbed_type in ['t0-64', 't0-116', 't0-118']

- set_fact:
test_ports: "{{ test_ports | combine( {p:{'test_neighbor_addr':pfc_wd_rx_neighbor_addr, 'rx_port':pfc_wd_test_port, 'rx_neighbor_addr': pfc_wd_test_neighbor_addr, 'peer_device':neighbors[p]['peerdevice'], 'test_port_id': minigraph_port_indices[p], 'rx_port_id': pfc_wd_test_port_id.split(' ') | list , 'test_portchannel_members': pfc_wd_rx_port_id.split(' ') | list, 'test_port_type':'portchannel' }}) }}"
when: first_pair and testbed_type in ['t0-64', 't0-116']
when: first_pair and testbed_type in ['t0-64', 't0-116', 't0-118']

- set_fact:
used: false
Expand Down
14 changes: 7 additions & 7 deletions ansible/roles/test/tasks/qos_sai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
- name: Init PTF base test parameters
set_fact:
ptf_base_params:
- router_mac={% if testbed_type not in ['t0', 't0-64', 't0-116'] %}'{{ansible_Ethernet0['macaddress']}}'{% else %}''{% endif %}
- router_mac={% if testbed_type not in ['t0', 't0-64', 't0-116', 't0-118'] %}'{{ansible_Ethernet0['macaddress']}}'{% else %}''{% endif %}
- server='{{ansible_host}}'
- port_map_file='/root/{{ptf_portmap | basename}}'
- sonic_asic_type='{{sonic_asic_type}}'
Expand Down Expand Up @@ -151,7 +151,7 @@
- dst_port_3_ip='{{dst_port_3_ip}}'
- src_port_id='{{src_port_id}}'
- src_port_ip='{{src_port_ip}}'
when: testbed_type in ['t0', 't0-64', 't0-116'] or arp_entries.stdout.find('incomplete') == -1
when: testbed_type in ['t0', 't0-64', 't0-116', 't0-118'] or arp_entries.stdout.find('incomplete') == -1

- include_tasks: qos_sai_ptf.yml
vars:
Expand Down Expand Up @@ -268,7 +268,7 @@
- pkts_num_hdrm_full={{qp_sc.hdrm_pool_size.pkts_num_hdrm_full}}
- pkts_num_hdrm_partial={{qp_sc.hdrm_pool_size.pkts_num_hdrm_partial}}
when: minigraph_hwsku is defined and
minigraph_hwsku in ['Arista-7060CX-32S-C32', 'Celestica-DX010-C32', 'Arista-7260CX3-D108C8', 'Force10-S6100', 'Arista-7260CX3-Q64']
minigraph_hwsku in ['Arista-7060CX-32S-C32', 'Celestica-DX010-C32', 'Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10', 'Force10-S6100', 'Arista-7260CX3-Q64']

# Lossy queue
- include_tasks: qos_sai_ptf.yml
Expand Down Expand Up @@ -348,11 +348,11 @@
- packet_size='{{qp.wm_pg_shared_lossless.packet_size}}'
- cell_size='{{qp.wm_pg_shared_lossless.cell_size}}'
when: minigraph_hwsku is defined and
(minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8'])
(minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10'])
- debug:
var: out.stdout_lines
when: minigraph_hwsku is defined and
(minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8'])
(minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10'])

# Clear all watermarks before each watermark test
# because of the clear on read polling mode
Expand All @@ -378,11 +378,11 @@
- packet_size='{{qp.wm_pg_shared_lossy.packet_size}}'
- cell_size='{{qp.wm_pg_shared_lossy.cell_size}}'
when: minigraph_hwsku is defined and
minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8']
minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10']
- debug:
var: out.stdout_lines
when: minigraph_hwsku is defined and
minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8']
minigraph_hwsku not in ['Arista-7260CX3-Q64', 'Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10']

# Clear all watermarks before each watermark test
# because of the clear on read polling mode
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/shared-fib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

- name: Expand properties into props
set_fact: props="{{configuration_properties['common']}}"
when: testbed_type in ['t0', 't0-52', 't0-56', 't0-64', 't0-64-32', 't0-116']
when: testbed_type in ['t0', 't0-52', 't0-56', 't0-64', 't0-64-32', 't0-116', 't0-118']

- name: Expand ToR properties into props
set_fact: props_tor="{{configuration_properties['tor']}}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/warm-reboot-multi-sad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- name: Add all lag member down case
set_fact:
pre_list: "{{ pre_list + ['dut_lag_member_down:2:{{ lag_memb_cnt }}', 'neigh_lag_member_down:3:{{ lag_memb_cnt }}']}}"
when: testbed_type in ['t0-64', 't0-116', 't0-64-32']
when: testbed_type in ['t0-64', 't0-116', 't0-118', 't0-64-32']

- name: set default values vnet variables
set_fact:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/warm-reboot-sad-lag-member.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- name: Add all lag member down case
set_fact:
pre_list: "{{ pre_list + ['dut_lag_member_down:2:{{ lag_memb_cnt }}', 'neigh_lag_member_down:3:{{ lag_memb_cnt }}']}}"
when: testbed_type in ['t0-64', 't0-116', 't0-64-32']
when: testbed_type in ['t0-64', 't0-116', 't0-118', 't0-64-32']

- name: set default values vnet variables
set_fact:
Expand Down
5 changes: 4 additions & 1 deletion ansible/roles/test/templates/fib.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
{% elif testbed_type == 't0-116' %}
0.0.0.0/0 [24 25] [26 27] [28 29] [30 31]
::/0 [24 25] [26 27] [28 29] [30 31]
{% elif testbed_type == 't0-118' %}
0.0.0.0/0 [0, 1] [22 23] [24 25] [26 27] [28 29]
::/0 [0, 1] [22 23] [24 25] [26 27] [28 29]
{% endif %}
{#routes to uplink#}
{#Limit the number of podsets and subnets to be covered to limit script execution time#}
Expand Down Expand Up @@ -61,7 +64,7 @@
[{% for member in v.members %}{{ '%d' % minigraph_port_indices[member]}}{% if not loop.last %} {% endif %}{% endfor %}]{% if not loop.last %} {% endif %}{% endfor %}

{% endif %}
{% elif testbed_type == 't0-116' %}
{% elif (testbed_type == 't0-116') or (testbed_type == 't0-118') %}
{% set suffix = ( (podset * props.tor_number * props.max_tor_subnet_number * props.tor_subnet_size) +
(tor * props.max_tor_subnet_number * props.tor_subnet_size) +
(subnet * props.tor_subnet_size) ) %}
Expand Down
Loading
Loading