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 的  仅当  当  通常类似于  | |
| 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 返回值:失败或调试 示例:  | 
