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
This commit is contained in:
parent
db689f7221
commit
4613c74074
1 changed files with 24 additions and 10 deletions
|
@ -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'''
|
||||
|
|
Loading…
Reference in a new issue