cisco.mso.mso_schema_site_anp_epg_useg_attribute 模块 – 管理模式站点中的 EPG 站点 uSeg 属性
注意
此模块是 cisco.mso 集合(版本 2.9.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了这个集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install cisco.mso
。您需要进一步的要求才能使用此模块,请参阅 要求 了解详细信息。
要在 Playbook 中使用它,请指定: cisco.mso.mso_schema_site_anp_epg_useg_attribute
。
概要
在 Cisco ACI 多站点上管理模式站点 EPG 中的站点 uSeg 属性。
要求
执行此模块的主机需要满足以下要求。
多站点编排器 v2.1 或更新版本
参数
参数 |
注释 |
---|---|
应用程序配置文件的名称。 |
|
uSeg 属性的描述。 |
|
EPG 的名称。 |
|
ACI 多站点编排器主机的 IP 地址或主机名。 如果任务中未指定该值,则将改用环境变量 |
|
用于身份验证的登录域名。 默认值为本地。 如果任务中未指定该值,则将改用环境变量 使用 HTTPAPI 连接插件时,如果未指定此属性,则将使用清单变量 |
|
uSeg 属性的名称和显示名称。 |
|
uSeg 属性的运算符类型。 选项
|
|
影响此 MSO 模块的输出。
如果任务中未指定该值,则将改用环境变量 选项
|
|
用于身份验证的密码。 如果任务中未指定该值,则将改用环境变量 |
|
用于 REST 连接的端口号。 默认值取决于参数 `use_ssl`。 如果任务中未指定该值,则将改用环境变量 |
|
模式的名称。 |
|
站点的名称。 |
|
使用 使用 选项
|
|
模板的名称。 |
|
套接字级别的超时时间,以秒为单位。 默认值为 30 秒。 如果任务中未指定该值,则将使用环境变量 |
|
uSeg 属性的类型。 选项
|
|
如果为 如果任务中未指定该值,则将使用环境变量 默认值为 选项
|
|
如果为 如果任务中未指定该值,则将使用环境变量 当使用 HTTPAPI 连接插件时,如果未指定此属性,则将使用清单变量 当使用 HTTPAPI 连接插件(mso 或 nd)时,默认值为 选项
|
|
仅当 attribute_type 为 IP 时才能使用 uSeg 子网。 使用 使用 选项
|
|
用于身份验证的用户名。 如果任务中未指定该值,则将使用环境变量 |
|
如果为 仅当在个人控制的站点上使用自签名证书时,才应将其设置为 如果任务中未指定该值,则将使用环境变量 默认值为 选项
|
|
uSeg 属性的值。 |
备注
注意
由于 MSO REST API 的限制,并发修改 EPG 子网可能会很危险并损坏数据。
此模块编写用于支持 Multi Site Orchestrator v2.1 或更高版本。某些或所有功能可能在早期版本上不起作用。
示例
- name: Add an uSeg attr with attribute_type - ip
cisco.mso.mso_schema_site_anp_epg_useg_attribute:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema 1
template: Template 1
anp: ANP 1
epg: EPG 1
site: ansible_test
name: useg_attr_ip
attribute_type: ip
useg_subnet: false
value: 10.0.0.0/24
state: present
- name: Query a specific EPG uSeg attr with name
cisco.mso.mso_schema_site_anp_epg_useg_attribute:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema 1
template: Template 1
anp: ANP 1
epg: EPG 1
name: useg_attr_ip
site: ansible_test
state: query
register: query_result
- name: Query all EPG uSeg attrs
cisco.mso.mso_schema_site_anp_epg_useg_attribute:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema 1
template: Template 1
anp: ANP 1
epg: EPG 1
site: ansible_test
state: query
register: query_result
- name: Remove a uSeg attr from an EPG with name
cisco.mso.mso_schema_site_anp_epg_useg_attribute:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema 1
template: Template 1
anp: ANP 1
epg: EPG 1
site: ansible_test
name: useg_attr_ip
state: absent