Skip to content

Commit

Permalink
Update documentation for aci_interface_policy_cdp (ansible#58395)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Converted from mixed indentation to spaces
  • Loading branch information
kbreit authored and acozine committed Jun 26, 2019
1 parent db689f7 commit 4613c74
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions lib/ansible/modules/network/aci/aci_interface_policy_cdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
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:
Expand Down Expand Up @@ -52,16 +52,30 @@
- 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'''
Expand Down

0 comments on commit 4613c74

Please sign in to comment.