Skip to content

Commit 66d6c21

Browse files
prsunnylguohan
authored andcommitted
Support for Sonic fanout (#555)
* Updated Arista HWSKU for 7060-C32 * Link flap changes for Sonic fanout switches, cache date_time for crm
1 parent c3c1a16 commit 66d6c21

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

ansible/group_vars/all/labinfo.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"Arista-7508-Q288": "Arista",
55
"Arista-7260QX-64": "Arista",
66
"Arista-7060CX-32S": "Arista",
7+
"Arista-7060CX-32S-C32": "Arista",
78
"Arista-VM": "Arista",
89
"Nexus-3064-NX": "Nexus",
910
"Force10-S6100": "Force10",

ansible/roles/test/tasks/crm.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
- set_fact: crm_intf="{{minigraph_portchannel_interfaces[0].attachto}}"
1313
when: (testbed_type == "t0") or (testbed_type == "t1-lag")
1414

15+
- set_fact:
16+
ansible_date_time: "{{ansible_date_time}}"
17+
1518
- name: Set polling interval
1619
command: crm config polling interval 1
1720

ansible/roles/test/tasks/link_flap/link_flap_helper.yml

+20
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- set_fact:
1919
peer_host: "{{device_info['mgmtip']}}"
2020
peer_hwsku: "{{device_info['HwSku']}}"
21+
peer_type: "{{device_info['Type']}}"
2122

2223
- set_fact:
2324
intfs_to_exclude: "{{interface}}"
@@ -28,6 +29,18 @@
2829
host: "{{peer_host}}"
2930
login: "{{switch_login[hwsku_map[peer_hwsku]]}}"
3031
connection: switch
32+
when: peer_type == "FanoutLeaf"
33+
34+
- name: find interface name mapping
35+
port_alias: hwsku="{{peer_hwsku}}"
36+
delegate_to: "{{peer_host}}"
37+
when: peer_type == "FanoutLeafSonic"
38+
39+
- name: Shutting down neighbor interface {{neighbor_interface}} on {{peer_host}}
40+
become: true
41+
shell: ip link set {{port_alias_map[neighbor_interface]}} down
42+
delegate_to: "{{peer_host}}"
43+
when: peer_type == "FanoutLeafSonic"
3144

3245
- pause:
3346
seconds: 20
@@ -50,6 +63,13 @@
5063
host: "{{peer_host}}"
5164
login: "{{switch_login[hwsku_map[peer_hwsku]]}}"
5265
connection: switch
66+
when: peer_type == "FanoutLeaf"
67+
68+
- name: Bring up neighbor interface {{neighbor_interface}} on {{peer_host}}
69+
become: true
70+
shell: ip link set {{port_alias_map[neighbor_interface]}} up
71+
delegate_to: "{{peer_host}}"
72+
when: peer_type == "FanoutLeafSonic"
5373

5474
- pause:
5575
seconds: 20

0 commit comments

Comments
 (0)