-
Notifications
You must be signed in to change notification settings - Fork 33
/
ag_port_config_load_bal_on.yml
84 lines (72 loc) · 2.22 KB
/
ag_port_config_load_bal_on.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
# Copyright 2019 Broadcom. All rights reserved.
# The term 'Broadcom' refers to Broadcom Inc. and/or its subsidiaries.
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
- hosts: san_eng_zone_seed_san_a
gather_facts: False
vars:
credential:
fos_ip_addr: "{{fos_ip_addr}}"
fos_user_name: "{{fos_user_name}}"
fos_password: "{{fos_password}}"
https: "{{fos_https}}"
all_port_groups_with_n_ports:
- port_group_id: "0"
port_group_name: "pg0"
- port_group_id: "1"
port_group_name: "pg1"
port_group_n_ports:
n_port:
- "0/44"
- "0/45"
- port_group_id: "2"
port_group_name: "pg2"
port_group_n_ports:
n_port:
- "0/46"
- "0/47"
all_port_groups_with_mode:
- port_group_id: "0"
port_group_mode:
load_balancing_mode_enabled: "0"
multiple_fabric_name_monitoring_mode_enabled: "0"
- port_group_id: "1"
port_group_mode:
load_balancing_mode_enabled: "1"
multiple_fabric_name_monitoring_mode_enabled: "1"
- port_group_id: "2"
port_group_mode:
load_balancing_mode_enabled: "1"
multiple_fabric_name_monitoring_mode_enabled: "1"
all_port_groups_with_f_ports:
- port_group_id: "0"
- port_group_id: "1"
port_group_f_ports:
f_port:
- "0/34"
- "0/35"
- port_group_id: "2"
port_group_f_ports:
f_port:
- "0/36"
- "0/37"
tasks:
- name: port group configuration with n-port
brocade_access_gateway_port_group:
credential: "{{credential}}"
vfid: -1
port_groups: "{{all_port_groups_with_n_ports}}"
- name: port group mode
brocade_access_gateway_port_group:
credential: "{{credential}}"
vfid: -1
port_groups: "{{all_port_groups_with_mode}}"
# pause for 15 seconds to make sure fabric is stable for
# zoning commit
- pause: seconds=15
- name: port group f-port configuration
brocade_access_gateway_port_group:
credential: "{{credential}}"
vfid: -1
port_groups: "{{all_port_groups_with_f_ports}}"