dellemc.openmanage.ome_smart_fabric_uplink 模块 – 在 OpenManage Enterprise Modular 上为 Fabric 创建、修改或删除上行链路
注意
此模块是 dellemc.openmanage 集合(版本 9.9.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install dellemc.openmanage
。您需要进一步的要求才能使用此模块,请参阅 要求 获取详细信息。
要在 playbook 中使用它,请指定: dellemc.openmanage.ome_smart_fabric_uplink
。
dellemc.openmanage 2.1.0 中的新增功能
概要
此模块允许为 Fabric 创建、修改或删除上行链路。
要求
执行此模块的主机需要满足以下要求。
python >= 3.9.6
参数
参数 |
注释 |
---|---|
包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。 |
|
为要创建或修改的上行链路提供简短描述。 |
|
提供要配置上行链路的 Fabric 的 *fabric_name*。 |
|
OpenManage Enterprise Modular IP 地址或主机名。 |
|
提供要创建、修改或删除的上行链路的 *name*。 |
|
为上行链路提供新的 *new_name*。 |
|
OpenManage Enterprise Modular HTTPS 端口。 默认: |
|
要连接到主交换机的 IOM 插槽。 此选项必须提供 *primary_switch_service_tag*。 |
|
主交换机的服务标签。 |
|
要连接到辅助交换机的 IOM 插槽。 此选项必须提供 *secondary_switch_service_tag*。 |
|
辅助交换机的服务标签。 |
|
警告 删除操作可能会影响网络基础设施。 选项
|
|
要与上行链路 *name* 关联的 VLAN。 |
|
套接字级别的超时时间,以秒为单位。 默认: |
|
将上行链路添加到上行链路故障检测 (UFD) 组或从中删除。UFD 组标识与上游交换机的连接丢失,并通知连接到该交换机的服务器。在上行链路发生故障期间,交换机会禁用相应的下游服务器端口。然后,下游服务器可以选择备用连接路由(如果可用)。 警告 运行 Fabric 管理器的 I/O 模块的固件版本必须支持此配置功能。否则,上行链路创建将成功,并在响应中显示相应的错误消息。 选项
|
|
指定要作为 untagged 添加到上行链路的 VLAN 名称。 |
|
指定上行链路类型。 注意 无法更改现有上行链路的上行链路类型。 选项
|
|
如果为 仅在个人控制的使用自签名证书的站点上配置 在集合版本 选项
|
|
身份验证令牌。 如果未提供 x_auth_token,则会使用环境变量 示例:export OME_X_AUTH_TOKEN=x_auth_token |
注释
注意
从可以直接访问 Dell OpenManage Enterprise Modular 的系统运行此模块。
此模块支持
check_mode
。
示例
---
- name: Create an Uplink
dellemc.openmanage.ome_smart_fabric_uplink:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
fabric_name: "fabric1"
name: "uplink1"
description: "CREATED from OMAM"
uplink_type: "Ethernet"
ufd_enable: "Enabled"
primary_switch_service_tag: "ABC1234"
primary_switch_ports:
- ethernet1/1/13
- ethernet1/1/14
secondary_switch_service_tag: "XYZ1234"
secondary_switch_ports:
- ethernet1/1/13
- ethernet1/1/14
tagged_networks:
- vlan1
- vlan3
untagged_network: vlan2
tags: create_uplink
- name: Modify an existing uplink
dellemc.openmanage.ome_smart_fabric_uplink:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
fabric_name: "fabric1"
name: "uplink1"
new_name: "uplink2"
description: "Modified from OMAM"
uplink_type: "Ethernet"
ufd_enable: "Disabled"
primary_switch_service_tag: "DEF1234"
primary_switch_ports:
- ethernet1/2/13
- ethernet1/2/14
secondary_switch_service_tag: "TUV1234"
secondary_switch_ports:
- ethernet1/2/13
- ethernet1/2/14
tagged_networks:
- vlan11
- vlan33
untagged_network: vlan22
tags: modify_uplink
- name: Delete an Uplink
dellemc.openmanage.ome_smart_fabric_uplink:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "absent"
fabric_name: "fabric1"
name: "uplink1"
tags: delete_uplink
- name: Modify an Uplink name
dellemc.openmanage.ome_smart_fabric_uplink:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
fabric_name: "fabric1"
name: "uplink1"
new_name: "uplink2"
tags: modify_uplink_name
- name: Modify Uplink ports
dellemc.openmanage.ome_smart_fabric_uplink:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
fabric_name: "fabric1"
name: "uplink1"
description: "uplink ports modified"
primary_switch_service_tag: "ABC1234"
primary_switch_ports:
- ethernet1/1/6
- ethernet1/1/7
secondary_switch_service_tag: "XYZ1234"
secondary_switch_ports:
- ethernet1/1/9
- ethernet1/1/10
tags: modify_ports
- name: Modify Uplink networks
dellemc.openmanage.ome_smart_fabric_uplink:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
fabric_name: "fabric1"
name: "create1"
description: "uplink networks modified"
tagged_networks:
- vlan4
tags: modify_networks
返回值
通用返回值已在此处记录 这里,以下是此模块独有的字段
键 |
描述 |
---|---|
Fabric 操作的附加详细信息。 返回: 当 state=present 且响应中存在附加信息时。 示例: |
|
HTTP 错误的详细信息。 返回: 当发生 HTTP 错误时 示例: |
|
上行链路操作的整体状态。 返回: 始终 示例: |
|
当创建或修改上行链路时,返回 ID。 返回: 当 state=present 时 示例: |