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''' EXAMPLES = r'''
- name: Adding new Fabric Node Member (Spine) - name: Add fabric node
aci_fabric_node: aci_fabric_node:
host: apic host: apic
username: someusername username: admin
password: somepassword password: SomeSecretPassword
pod_id: 5 serial: ansible_test
serial: someserial123 node_id: 105
node_id: 112 switch: test
switch: someswitchname
description: somedescription
role: spine
state: present 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''' RETURN = r'''

@ -103,7 +103,7 @@ extends_documentation_fragment: aci
''' '''
EXAMPLES = r''' EXAMPLES = r'''
- name: Deploy Static Path for EPG - name: Deploy Static Path binding for given EPG
aci_static_binding_to_epg: aci_static_binding_to_epg:
host: apic host: apic
username: admin username: admin
@ -119,6 +119,34 @@ EXAMPLES = r'''
leafs: 101 leafs: 101
interface: '1/7' interface: '1/7'
state: present 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''' RETURN = r'''

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

Loading…
Cancel
Save