summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/aci
diff options
context:
space:
mode:
authorKevin Breit <kevin.breit@kevinbreit.net>2019-06-26 10:16:23 -0500
committerAlicia Cozine <879121+acozine@users.noreply.github.com>2019-06-26 10:16:23 -0500
commit4613c74074c13c0fec71e6269291fa0f4a188a1a (patch)
tree10ec4a33f371c738bd6b9f865da7d7030735f7d5 /lib/ansible/modules/network/aci
parentdb689f7221a18e33504fd1fe2bac3d3a5e190266 (diff)
downloadansible-4613c74074c13c0fec71e6269291fa0f4a188a1a.tar.gz
Update documentation for aci_interface_policy_cdp (#58395)
* Update documentation for aci_interface_policy_cdp ##### SUMMARY Documentation only changes. Improved the examples and changed the `version_added` from 2.8 to 2.9. * Update lib/ansible/modules/network/aci/aci_interface_policy_cdp.py Co-Authored-By: Sandra McCann <samccann@redhat.com> * Converted from mixed indentation to spaces
Diffstat (limited to 'lib/ansible/modules/network/aci')
-rw-r--r--lib/ansible/modules/network/aci/aci_interface_policy_cdp.py34
1 files changed, 24 insertions, 10 deletions
diff --git a/lib/ansible/modules/network/aci/aci_interface_policy_cdp.py b/lib/ansible/modules/network/aci/aci_interface_policy_cdp.py
index 9bda55e269..f1851b3ca4 100644
--- a/lib/ansible/modules/network/aci/aci_interface_policy_cdp.py
+++ b/lib/ansible/modules/network/aci/aci_interface_policy_cdp.py
@@ -18,7 +18,7 @@ module: aci_interface_policy_cdp
short_description: Manage CDP interface policies (cdp:IfPol)
description:
- Manage CDP interface policies on Cisco ACI fabrics.
-version_added: '2.8'
+version_added: '2.9'
options:
cdp_policy:
description:
@@ -52,16 +52,30 @@ author:
- Tim Knipper (@tknipper11)
'''
-# FIXME: Add more, better examples
EXAMPLES = r'''
-- aci_interface_policy_cdp:
- host: '{{ hostname }}'
- username: '{{ username }}'
- password: '{{ password }}'
- cdp_policy: '{{ cdp_policy }}'
- description: '{{ description }}'
- admin_state: '{{ admin_state }}'
- delegate_to: localhost
+- name: Create CDP Test Policy
+ aci_interface_policy_cdp:
+ name: Ansible_CDP_Test_Policy
+ host: apic.example.com
+ username: admin
+ password: adminpass
+ state: present
+
+- name: Remove CDP Test Policy
+ aci_interface_policy_cdp:
+ name: Ansible_CDP_Test_Policy
+ host: apic.example.com
+ username: admin
+ password: adminpass
+ output_level: debug
+ state: absent
+
+- name: Query CDP Policy
+ aci_interface_policy_cdp:
+ host: apic.example.com
+ username: admin
+ password: adminpass
+ state: query
'''
RETURN = r'''