1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

added additional examples for aci modules (#36612)

* added additional examples for aci modules

* small fix on aci_fabric_node

* removing jina2 for clarity
This commit is contained in:
Bruno 2018-02-22 17:39:58 -08:00 committed by Dag Wieers
parent d212bcf1e7
commit 68a97ca558
3 changed files with 69 additions and 14 deletions

View file

@ -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'''

View file

@ -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'''

View file

@ -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'''