added additional examples for aci modules (#36612)

* added additional examples for aci modules

* small fix on aci_fabric_node

* removing jina2 for clarity
pull/33207/head
Bruno 7 years ago committed by Dag Wieers
parent d212bcf1e7
commit 68a97ca558

@ -57,18 +57,31 @@ extends_documentation_fragment: aci
'''
EXAMPLES = r'''
- name: Adding new Fabric Node Member (Spine)
- name: Add fabric node
aci_fabric_node:
host: apic
username: someusername
password: somepassword
pod_id: 5
serial: someserial123
node_id: 112
switch: someswitchname
description: somedescription
role: spine
username: admin
password: SomeSecretPassword
serial: ansible_test
node_id: 105
switch: test
state: present
- name: Remove fabric node
aci_fabric_node:
host: apic
username: admin
password: SomeSecretPassword
serial: ansible_test
node_id: 105
state: absent
- name: Query fabric nodes
aci_fabric_node:
host: apic
username: admin
password: SomeSecretPassword
state: query
'''
RETURN = r'''

@ -103,7 +103,7 @@ extends_documentation_fragment: aci
'''
EXAMPLES = r'''
- name: Deploy Static Path for EPG
- name: Deploy Static Path binding for given EPG
aci_static_binding_to_epg:
host: apic
username: admin
@ -119,6 +119,34 @@ EXAMPLES = r'''
leafs: 101
interface: '1/7'
state: present
- name: Remove Static Path binding for given EPG
aci_static_binding_to_epg:
host: apic
username: admin
password: SomeSecretPassword
tenant: anstest
ap: anstest
epg: anstest
interface_type: switch_port
pod: 1
leafs: 101
interface: '1/7'
state: absent
- name: Get specific Static Path binding for given EPG
aci_static_binding_to_epg:
host: apic
username: admin
password: SomeSecretPassword
tenant: anstest
ap: anstest
epg: anstest
interface_type: switch_port
pod: 1
leafs: 101
interface: '1/7'
state: query
'''
RETURN = r'''

@ -56,14 +56,13 @@ extends_documentation_fragment: aci
'''
EXAMPLES = r'''
- name: Add Explicit vPC Protection Group
- name: Add vPC Protection Group
aci_switch_policy_vpc_protection_group:
host: apic
username: admin
password: SomeSecretPassword
protection_group: protectiongroupname
protection_group: ansible_test
protection_group_id: 6
vpc_domain_policy: vpcdomainpolicyname
switch_1_id: 3811
switch_2_id: 3812
state: present
@ -73,8 +72,23 @@ EXAMPLES = r'''
host: apic
username: admin
password: SomeSecretPassword
protection_group: protectiongroupname
protection_group: ansible_test
state: absent
- name: Query vPC Protection Groups
aci_switch_policy_vpc_protection_group:
host: apic
username: admin
password: SomeSecretPassword
state: query
- name: Query our vPC Protection Group
aci_switch_policy_vpc_protection_group:
host: apic
username: admin
password: SomeSecretPassword
protection_group: ansible_test
state: query
'''
RETURN = r'''

Loading…
Cancel
Save