diff options
Diffstat (limited to 'lib/ansible/modules/network/aci/aci_tenant_ep_retention_policy.py')
-rw-r--r-- | lib/ansible/modules/network/aci/aci_tenant_ep_retention_policy.py | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/lib/ansible/modules/network/aci/aci_tenant_ep_retention_policy.py b/lib/ansible/modules/network/aci/aci_tenant_ep_retention_policy.py index 11ba6c60e5..e481f3f7b4 100644 --- a/lib/ansible/modules/network/aci/aci_tenant_ep_retention_policy.py +++ b/lib/ansible/modules/network/aci/aci_tenant_ep_retention_policy.py @@ -16,16 +16,6 @@ module: aci_tenant_ep_retention_policy short_description: Manage End Point (EP) retention protocol policies (fv:EpRetPol) description: - Manage End Point (EP) retention protocol policies on Cisco ACI fabrics. -notes: -- The C(tenant) used must exist before using this module in your playbook. - The M(aci_tenant) module can be used for this. -seealso: -- module: aci_tenant -- name: APIC Management Information Model reference - description: More information about the internal APIC class B(fv:EpRetPol). - link: https://developer.cisco.com/docs/apic-mim-ref/ -author: -- Swetha Chunduri (@schunduri) version_added: '2.4' options: tenant: @@ -87,11 +77,21 @@ options: choices: [ absent, present, query ] default: present extends_documentation_fragment: aci +notes: +- The C(tenant) used must exist before using this module in your playbook. + The M(aci_tenant) module can be used for this. +seealso: +- module: aci_tenant +- name: APIC Management Information Model reference + description: More information about the internal APIC class B(fv:EpRetPol). + link: https://developer.cisco.com/docs/apic-mim-ref/ +author: +- Swetha Chunduri (@schunduri) ''' EXAMPLES = r''' - name: Add a new EPR policy - aci_epr_policy: + aci_tenant_ep_retention_policy: host: apic username: admin password: SomeSecretPassword @@ -107,7 +107,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove an EPR policy - aci_epr_policy: + aci_tenant_ep_retention_policy: host: apic username: admin password: SomeSecretPassword @@ -117,7 +117,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query an EPR policy - aci_epr_policy: + aci_tenant_ep_retention_policy: host: apic username: admin password: SomeSecretPassword @@ -128,7 +128,7 @@ EXAMPLES = r''' register: query_result - name: Query all EPR policies - aci_epr_policy: + aci_tenant_ep_retention_policy: host: apic username: admin password: SomeSecretPassword @@ -242,17 +242,20 @@ url: sample: https://10.11.12.13/api/mo/uni/tn-production.json ''' -from ansible.module_utils.network.aci.aci import ACIModule, aci_argument_spec from ansible.module_utils.basic import AnsibleModule +from ansible.module_utils.network.aci.aci import ACIModule, aci_argument_spec -BOUNCE_TRIG_MAPPING = dict(coop='protocol', rarp='rarp-flood') +BOUNCE_TRIG_MAPPING = dict( + coop='protocol', + rarp='rarp-flood', +) def main(): argument_spec = aci_argument_spec() argument_spec.update( tenant=dict(type='str', aliases=['tenant_name']), # Not required for querying all objects - epr_policy=dict(type='str', aliases=['epr_name', 'name']), + epr_policy=dict(type='str', aliases=['epr_name', 'name']), # Not required for querying all objects bounce_age=dict(type='int'), bounce_trigger=dict(type='str', choices=['coop', 'flood']), hold_interval=dict(type='int'), |