Cisco MDS 9000 Series Ansible Modules
nxos_devicealias - Configuration of Device Alias
Synopsis
Configures device alias for Cisco MDS NXOS.
Parameters
Parameter |
Choices/Defaults |
Comments |
|
---|---|---|---|
distribute |
bool/False |
Enable/Disable device-alias distribution |
|
mode |
Choices:
Default:
|
Mode of devices-alias, basic or enhanced |
|
da |
List of device-alias to be added or removed |
||
name |
Name of the device-alias to be added or removed |
||
pwwn |
pwwn to which the name needs to be associated with |
||
remove |
bool/False |
Removes the device-alias if set to True |
Notes
Examples
nxos_devicealias:
distribute: yes
mode: enhanced
da:
- { name: 'test1_add', pwwn: '56:2:22:11:22:88:11:67'}
- { name: 'test2_add', pwwn: '65:22:22:11:22:22:11:d'}
- { name: 'dev1', remove: True}
- { name: 'dev2', remove: True}
provider: "{{ creds }}"
register: result
- debug: var=result
Return Values
Status
nxos_vsan - Configuration of VSAN
Synopsis
Configures VSAN for Cisco MDS NXOS devices.
Parameters
Parameter |
Choices/Defaults |
Comments |
|
---|---|---|---|
vsan |
List of vsan details to be added or removed. |
||
id |
vsan id |
||
name |
Name of the vsan |
||
suspend |
bool/False |
Suspend the vsan if True |
|
remove |
bool/False |
Removes the vsan if True |
|
interface |
List of vsan's interfaces to be added. |
Notes
Examples
nxos_vsan:
provider: "{{ creds }}"
vsan:
- id: 922
name: vsan-SAN-A
suspend: False
interface:
- fc1/1
- fc1/2
- port-channel 1
remove: False
- id: 923
name: vsan-SAN-B
suspend: True
interface:
- fc1/11
- fc1/21
- port-channel 2
remove: False
- id: 1923
name: vsan-SAN-Old
remove: True
register: result
- debug: var=result
Return Values
Status
nxos_zone_zoneset - Configuration of Zone/Zone set
Synopsis
Configures Zone/Zone set for Cisco MD NXOS devices.
Parameters
Parameter |
Choices/Defaults |
Comments |
||||
---|---|---|---|---|---|---|
zone_zoneset_details |
List of zone/zoneset details to be added or removed |
|||||
vsan |
vsan id |
|||||
mode |
Choices:
Default:
|
Mode of the zone for the vsan |
||||
default_zone |
Choices:
Default:
|
default zone behaviour for the vsan |
||||
smart_zoning |
bool/False |
Enables smartzoning on the vsan if True. |
||||
zone |
List of zone options for that vsan. |
|||||
name |
name of the zone |
|||||
remove |
bool/False |
Deletes the zone if True |
||||
members |
Members of the zone that needs to be removed or added |
|||||
pwwn |
pwwn member of the zone, use alias 'device-alias' as option for device-alias member |
|||||
remove |
bool/False |
Removes member from the zone if True |
||||
devtype |
Choices:
|
devtype of the zone member used along with Smart zoning config |
||||
zoneset |
List of zoneset options for the vsan |
|||||
name |
name of the zoneset |
|||||
remove |
bool/False |
Removes zoneset if True |
||||
action |
Choices:
Default:
|
activates/de-activates the zoneset |
||||
members |
Members of the zoneset that needs to be removed or added |
|||||
name |
name of the zone that needs to be added to the zoneset or removed from the zoneset |
|||||
remove |
bool/False |
Removes zone member from the zoneset |
Notes
Examples
nxos_zone_zoneset:
provider: "{{ creds }}"
zone_zoneset_details:
- vsan: 22
mode: enhanced
zone:
- name: zoneA
members:
- {pwwn: '11:11:11:11:11:11:11:11'}
- {device-alias: 'test123'}
- {pwwn: '61:61:62:62:12:12:12:12', remove: True}
- name: zoneB
members:
- {pwwn: '10:11:11:11:11:11:11:11'}
- {pwwn: '62:62:62:62:21:21:21:21'}
- name: zoneC
remove: True
zoneset:
- name: zsetname1
members:
- {name: zoneA}
- {name: zoneB}
- {name: zoneC, remove: True}
action: activate
- name: zsetTestExtra
remove: True
action: deactivate
- vsan: 21
mode: basic
smart_zoning: True
zone:
- name: zone21A
members:
- {pwwn: '11:11:11:11:11:11:11:11',devtype: 'both'}
- {pwwn: '62:62:62:62:12:12:12:12'}
- {pwwn: '92:62:62:62:12:12:1a:1a',devtype: 'both', remove: True}
- name: zone21B
members:
- {pwwn: '10:11:11:11:11:11:11:11'}
- {pwwn: '62:62:62:62:21:21:21:21'}
zoneset:
- name: zsetname21
members:
- {name: zone21A}
- {name: zone21B}
action: activate
register: result
- debug: var=result