Skip to content

Support for Sonic fanout #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 31, 2018
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
1 change: 1 addition & 0 deletions ansible/group_vars/all/labinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"Arista-7508-Q288": "Arista",
"Arista-7260QX-64": "Arista",
"Arista-7060CX-32S": "Arista",
"Arista-7060CX-32S-C32": "Arista",
"Arista-VM": "Arista",
"Nexus-3064-NX": "Nexus",
"Force10-S6100": "Force10",
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/test/tasks/crm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- set_fact: crm_intf="{{minigraph_portchannel_interfaces[0].attachto}}"
when: (testbed_type == "t0") or (testbed_type == "t1-lag")

- set_fact:
ansible_date_time: "{{ansible_date_time}}"

- name: Set polling interval
command: crm config polling interval 1

Expand Down
20 changes: 20 additions & 0 deletions ansible/roles/test/tasks/link_flap/link_flap_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- set_fact:
peer_host: "{{device_info['mgmtip']}}"
peer_hwsku: "{{device_info['HwSku']}}"
peer_type: "{{device_info['Type']}}"

- set_fact:
intfs_to_exclude: "{{interface}}"
Expand All @@ -28,6 +29,18 @@
host: "{{peer_host}}"
login: "{{switch_login[hwsku_map[peer_hwsku]]}}"
connection: switch
when: peer_type == "FanoutLeaf"

- name: find interface name mapping
port_alias: hwsku="{{peer_hwsku}}"
delegate_to: "{{peer_host}}"
when: peer_type == "FanoutLeafSonic"

- name: Shutting down neighbor interface {{neighbor_interface}} on {{peer_host}}
become: true
shell: ip link set {{port_alias_map[neighbor_interface]}} down
delegate_to: "{{peer_host}}"
when: peer_type == "FanoutLeafSonic"

- pause:
seconds: 20
Expand All @@ -50,6 +63,13 @@
host: "{{peer_host}}"
login: "{{switch_login[hwsku_map[peer_hwsku]]}}"
connection: switch
when: peer_type == "FanoutLeaf"

- name: Bring up neighbor interface {{neighbor_interface}} on {{peer_host}}
become: true
shell: ip link set {{port_alias_map[neighbor_interface]}} up
delegate_to: "{{peer_host}}"
when: peer_type == "FanoutLeafSonic"

- pause:
seconds: 20
Expand Down