aci_epg_to_contract – Bind EPGs to Contracts (fv:RsCons, fv:RsProv)¶
New in version 2.4.
Parameters¶
Notes¶
Note
The
tenant
,app_profile
,EPG
, andContract
used must exist before using this module in your playbook. The aci_tenant, aci_ap, aci_epg, and aci_contract modules can be used for this.
See Also¶
See also
- aci_ap – Manage top level Application Profile (AP) objects (fv:Ap)
The official documentation on the aci_ap module.
- aci_epg – Manage End Point Groups (EPG) objects (fv:AEPg)
The official documentation on the aci_epg module.
- aci_contract – Manage contract resources (vz:BrCP)
The official documentation on the aci_contract module.
- APIC Management Information Model reference
More information about the internal APIC classes fv:RsCons and fv:RsProv.
- Cisco ACI Guide
Detailed information on how to manage your ACI infrastructure using Ansible.
- Developing Cisco ACI modules
Detailed guide on how to write your own Cisco ACI modules to contribute.
Examples¶
- name: Add a new contract to EPG binding
aci_epg_to_contract:
host: apic
username: admin
password: SomeSecretPassword
tenant: anstest
ap: anstest
epg: anstest
contract: anstest_http
contract_type: provider
state: present
delegate_to: localhost
- name: Remove an existing contract to EPG binding
aci_epg_to_contract:
host: apic
username: admin
password: SomeSecretPassword
tenant: anstest
ap: anstest
epg: anstest
contract: anstest_http
contract_type: provider
state: absent
delegate_to: localhost
- name: Query a specific contract to EPG binding
aci_epg_to_contract:
host: apic
username: admin
password: SomeSecretPassword
tenant: anstest
ap: anstest
epg: anstest
contract: anstest_http
contract_type: provider
state: query
delegate_to: localhost
register: query_result
- name: Query all provider contract to EPG bindings
aci_epg_to_contract:
host: apic
username: admin
password: SomeSecretPassword
contract_type: provider
state: query
delegate_to: localhost
register: query_result
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by an Ansible Partner. [certified]
Authors¶
Jacob McGill (@jmcgill298)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.