File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 4
4
"Arista-7508-Q288" : " Arista" ,
5
5
"Arista-7260QX-64" : " Arista" ,
6
6
"Arista-7060CX-32S" : " Arista" ,
7
+ "Arista-7060CX-32S-C32" : " Arista" ,
7
8
"Arista-VM" : " Arista" ,
8
9
"Nexus-3064-NX" : " Nexus" ,
9
10
"Force10-S6100" : " Force10" ,
Original file line number Diff line number Diff line change 12
12
- set_fact : crm_intf="{{minigraph_portchannel_interfaces[0].attachto}}"
13
13
when : (testbed_type == "t0") or (testbed_type == "t1-lag")
14
14
15
+ - set_fact :
16
+ ansible_date_time : " {{ansible_date_time}}"
17
+
15
18
- name : Set polling interval
16
19
command : crm config polling interval 1
17
20
Original file line number Diff line number Diff line change 18
18
- set_fact :
19
19
peer_host : " {{device_info['mgmtip']}}"
20
20
peer_hwsku : " {{device_info['HwSku']}}"
21
+ peer_type : " {{device_info['Type']}}"
21
22
22
23
- set_fact :
23
24
intfs_to_exclude : " {{interface}}"
28
29
host : " {{peer_host}}"
29
30
login : " {{switch_login[hwsku_map[peer_hwsku]]}}"
30
31
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"
31
44
32
45
- pause :
33
46
seconds : 20
50
63
host : " {{peer_host}}"
51
64
login : " {{switch_login[hwsku_map[peer_hwsku]]}}"
52
65
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"
53
73
54
74
- pause :
55
75
seconds : 20
You can’t perform that action at this time.
0 commit comments