cisco.aci.aci_bulk_static_binding_to_epg 模块 – 将静态路径绑定到 EPG (fv:RsPathAtt)
注意
此模块是 cisco.aci 集合(版本 2.10.1)的一部分。
如果您使用的是 ansible 包,您可能已经安装了这个集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install cisco.aci。
要在 playbook 中使用它,请指定:cisco.aci.aci_bulk_static_binding_to_epg。
概要
- 将静态路径绑定到 Cisco ACI 结构上的 EPG。 
参数
| 参数 | 注释 | 
|---|---|
| 用于注释对象的用户定义字符串。 如果任务中未指定该值,则将使用环境变量  如果任务中未指定该值且环境变量  默认值:  | |
| 应用程序配置文件的名称。 | |
| 附加到用于基于签名的身份验证的 APIC AAA 用户的 X.509 证书名称。 如果提供了  如果为  如果任务中未指定该值,则将使用环境变量  | |
| PC、VPC 或接口上静态 EPG 的部署即时性。 在创建期间未设置时,APIC 默认为  选择 
 | |
| 静态路径到 EPG 绑定的描述。 | |
| 将  当使用微细分时,这充当辅助  接受的值是指定封装的任何有效封装 ID,当前范围在  | |
| 端点组的名称。 | |
| 可通过 Ansible 控制主机解析的 APIC 的 IP 地址或主机名。 如果任务中未指定该值,则将使用环境变量  | |
| 接口配置列表,元素采用字典形式。 模块级属性将被路径级属性覆盖。 | |
| PC、VPC 或接口上静态 EPG 的部署即时性。 在创建期间未设置时,APIC 默认为  选择 
 | |
| 静态路径到 EPG 绑定的描述。 | |
| 将  当使用微细分时,这充当辅助  接受的值是指定封装的任何有效封装 ID,当前范围在  | |
| 
 仅当  当  通常类似于  | |
| tDn 中  通常是一个策略组,如  | |
| 确定如何从帧读取和向帧添加 2 层标签。 值  值  值  APIC 在创建时未设置的情况下默认为  选择 
 | |
| 静态 EPG 部署的接口类型。 选择 
 | |
| 
 当  当  
 | |
| tDn 的 pod 编号部分。 
 | |
| 确定在使用微细分时,将  接受的值是指定封装的任何有效封装 ID,当前范围在  
 | |
| 确定如何从帧读取和向帧添加 2 层标签。 值  值  值  APIC 在创建时未设置的情况下默认为  选择 
 | |
| 静态 EPG 部署的接口类型。 选择 
 | |
| 影响此 ACI 模块的输出。 
 
 
 如果任务中未指定该值,则将使用环境变量  选择 
 | |
| 用于转储模块生成的 ACI JSON 配置对象的文件路径。 如果任务中未指定该值,则将使用环境变量  | |
| 用于身份验证的密码。 此选项与  如果任务中未指定该值,则将使用环境变量  | |
| 用于 REST 连接的端口号。 默认值取决于参数  如果任务中未指定该值,则将使用环境变量  | |
| 确定在使用微细分时,将  接受的值是指定封装的任何有效封装 ID,当前范围在  
 | |
| PEM 格式的私钥文件或用于基于签名的身份验证的私钥内容。 此值还会影响使用的默认  此选项与  如果任务中未指定该值,则将使用环境变量  | |
| 使用  使用  选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  默认值为  警告 - 这会导致之前的返回值为空。 不会检查对象的先前状态,并且 POST 更新将包含所有属性。 选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  默认值为  警告 - 这会导致当前返回值设置为建议值。 在单个任务中,当前对象(包括默认值)将无法验证。 选择 
 | |
| 租户的名称。 | |
| 套接字级别的超时时间(以秒为单位)。 如果任务中未指定该值,则将使用环境变量  默认值为 30。 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  默认值为 true。 选择 
 | |
| 如果为  如果任务中未指定该值,则将使用环境变量  当连接为本地连接时,默认值为 true。 选择 
 | |
| 用于身份验证的用户名。 如果任务中未指定该值,则将使用环境变量  默认值为 admin。 | |
| 如果为  仅当在个人控制的站点上使用自签名证书时,才应将其设置为  如果任务中未指定该值,则将使用环境变量  默认值为 true。 选择 
 | 
注释
注意
- 在你的playbook中使用此模块之前, - tenant、- ap和- epg必须已经存在。可以使用cisco.aci.aci_tenant、cisco.aci.aci_ap和cisco.aci.aci_epg模块来实现此目的。
另请参阅
另请参阅
- cisco.aci.aci_tenant
- 管理租户 (fv:Tenant)。 
- cisco.aci.aci_ap
- 管理顶层应用程序配置文件 (AP) 对象 (fv:Ap)。 
- cisco.aci.aci_epg
- 管理端点组 (EPG) 对象 (fv:AEPg)。 
- APIC 管理信息模型参考
- 有关内部 APIC 类 fv:RsPathAtt 的更多信息。 
- Cisco ACI 指南
- 有关如何使用 Ansible 管理你的 ACI 基础架构的详细信息。 
- 开发 Cisco ACI 模块
- 关于如何编写你自己的 Cisco ACI 模块并做出贡献的详细指南。 
示例
- name: Create list of interfaces using module level attributes
  cisco.aci.aci_bulk_static_binding_to_epg:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: accessport-code-cert
    ap: accessport_code_app
    epg: accessport_epg1
    encap_id: 221
    interface_mode: trunk
    deploy_immediacy: lazy
    description: "Module level attributes used to create interfaces"
    interface_configs:
      - interface: 1/7
        leafs: 101
        pod: 1
      - interface: 1/7
        leafs: 107
        pod: 7
      - interface: 1/8
        leafs: 108
        pod: 8
        encap_id: 108
    state: present
  delegate_to: localhost
- name: Create/Update list of interfaces using path level attributes
  cisco.aci.aci_bulk_static_binding_to_epg:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: accessport-code-cert
    ap: accessport_code_app
    epg: accessport_epg1
    interface_configs:
      - interface: 1/7
        leafs: 101
        pod: 1
        encap_id: 221
        interface_mode: trunk
        deploy_immediacy: lazy
        description: "Path level attributes used to create/update interfaces"
      - interface: 1/7
        leafs: 107
        pod: 7
        encap_id: 221
        interface_mode: trunk
        deploy_immediacy: lazy
        description: "Path level attributes used to create/update interfaces"
      - interface: 1/8
        leafs: 108
        pod: 8
        encap_id: 108
        interface_mode: trunk
        deploy_immediacy: lazy
        description: "Path level attributes used to create/update interfaces"
    state: present
  delegate_to: localhost
- name: Query all interfaces of an EPG
  cisco.aci.aci_bulk_static_binding_to_epg:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: accessport-code-cert
    ap: accessport_code_app
    epg: accessport_epg1
    state: query
  delegate_to: localhost
- name: Query all interfaces
  cisco.aci.aci_bulk_static_binding_to_epg:
    host: apic
    username: admin
    password: SomeSecretPassword
    state: query
  delegate_to: localhost
- name: Remove list of interfaces
  cisco.aci.aci_bulk_static_binding_to_epg:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: accessport-code-cert
    ap: accessport_code_app
    epg: accessport_epg1
    encap_id: 221
    interface_mode: trunk
    deploy_immediacy: lazy
    interface_configs:
      - interface: 1/7
        leafs: 101
        pod: 1
      - interface: 1/7
        leafs: 107
        pod: 7
      - interface: 1/8
        leafs: 108
        pod: 8
        encap_id: 108
    state: absent
  delegate_to: localhost
返回值
通用返回值在此处有文档记录 这里,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 模块完成后来自 APIC 的现有配置 返回: 成功 示例:  | |
| 从 APIC 返回的错误信息 返回: 失败 示例:  | |
| 用于请求的过滤器字符串 返回: 失败或调试 示例:  | |
| 用于向 APIC 发出请求的 HTTP 方法 返回: 失败或调试 示例:  | |
| 模块启动之前来自 APIC 的原始配置 返回: 信息 示例:  | |
| 从用户提供的参数组装的配置 返回: 信息 示例:  | |
| APIC REST API 返回的原始输出 (xml 或 json) 返回: 解析错误 示例:  | |
| 来自 APIC 的 HTTP 响应 返回: 失败或调试 示例:  | |
| 推送到 APIC 的实际/最小配置 返回: 信息 示例:  | |
| 来自 APIC 的 HTTP 状态 返回: 失败或调试 示例:  | |
| 用于向 APIC 发出请求的 HTTP URL 返回: 失败或调试 示例:  | 
