cisco.nxos.nxos_zone_zoneset 模块 – 配置 Cisco NXOS MDS 交换机的区域/区域集。
注意
此模块是 cisco.nxos 集合(版本 9.2.1)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install cisco.nxos
。
要在 playbook 中使用它,请指定:cisco.nxos.nxos_zone_zoneset
。
cisco.nxos 1.0.0 中的新功能
概要
配置 Cisco MDS NXOS 的区域/区域集。
参数
参数 |
注释 |
---|---|
要添加或删除的区域/区域集详细信息列表 |
|
vsan 的默认区域行为 选项
|
|
vsan 的区域模式 选项
|
|
如果为 True,则删除 vsan 选项
|
|
vsan ID |
|
该 vsan 的区域选项列表 |
|
需要删除或添加的区域成员 |
|
与智能区域配置一起使用的区域成员的 devtype 选项
|
|
区域的 pwwn 成员,使用别名 'device_alias' 作为 device_alias 成员的选项 |
|
如果为 True,则从区域中删除成员 选项
|
|
区域的名称 |
|
如果为 True,则删除区域 选项
|
|
vsan 的区域集选项列表 |
|
激活/停用区域集 选项
|
|
需要删除或添加的区域集成员 |
|
需要添加到区域集或从区域集中删除的区域名称 |
|
从区域集中删除区域成员 选项
|
|
区域集的名称 |
|
如果为 True,则删除区域集 选项
|
说明
注意
已针对 Cisco MDS NX-OS 8.4(1) 进行测试
示例
- name: Test that zone/zoneset module works
cisco.nxos.nxos_zone_zoneset:
zone_zoneset_details:
- mode: enhanced
vsan: 22
zone:
- members:
- pwwn: 31314874576271
- device_alias: test123
- pwwn: '61:61:62:62:12:12:12:12'
remove: true
name: zoneA
- members:
- pwwn: 28515514576271
- pwwn: '62:62:62:62:21:21:21:21'
name: zoneB
- name: zoneC
remove: true
zoneset:
- action: activate
members:
- name: zoneA
- name: zoneB
- name: zoneC
remove: true
name: zsetname1
- action: deactivate
name: zsetTestExtra
remove: true
- mode: basic
smart_zoning: true
vsan: 21
zone:
- members:
- devtype: both
pwwn: 31314874576271
- pwwn: '62:62:62:62:12:12:12:12'
- devtype: both
pwwn: '92:62:62:62:12:12:1a:1a'
remove: true
name: zone21A
- members:
- pwwn: 28515514576271
- pwwn: '62:62:62:62:21:21:21:21'
name: zone21B
zoneset:
- action: activate
members:
- name: zone21A
- name: zone21B
name: zsetname212
返回值
常见的返回值记录在 这里,以下是此模块特有的字段
键 |
描述 |
---|---|
发送到设备的命令 返回: 始终 示例: |
|
调试消息 返回: 始终 示例: |