ACI: Move to 'host' parameter instead of 'hostname' (#35161)

* ACI: Move to 'host' parameter instead of 'hostname'

* Update host parameter in documentation fragment too
This commit is contained in:
Dag Wieers 2018-01-22 22:06:56 +01:00 committed by GitHub
commit d6004852a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 197 additions and 198 deletions

View file

@ -54,7 +54,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a certificate to user
aci_aaa_user_certificate:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
user: admin
@ -64,7 +64,7 @@ EXAMPLES = r'''
- name: Remove a certificate of a user
aci_aaa_user_certificate:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
user: admin
@ -73,7 +73,7 @@ EXAMPLES = r'''
- name: Query a certificate of a user
aci_aaa_user_certificate:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
user: admin
@ -82,7 +82,7 @@ EXAMPLES = r'''
- name: Query all certificates of a user
aci_aaa_user_certificate:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
user: admin

View file

@ -73,7 +73,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Associate an Interface Access Port Selector to an Interface Policy Leaf Profile with a Policy Group
aci_access_port_to_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname
@ -86,7 +86,7 @@ EXAMPLES = r'''
- name: Associate an interface access port selector to an Interface Policy Leaf Profile (w/o policy group) (check if this works)
aci_access_port_to_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname
@ -98,7 +98,7 @@ EXAMPLES = r'''
- name: Remove an interface access port selector associated with an Interface Policy Leaf Profile
aci_access_port_to_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname
@ -107,7 +107,7 @@ EXAMPLES = r'''
- name: Query Specific access_port_selector under given leaf_interface_profile
aci_access_port_to_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname

View file

@ -55,7 +55,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new AEP
aci_aep:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
aep: ACI-AEP
@ -64,7 +64,7 @@ EXAMPLES = r'''
- name: Remove an existing AEP
aci_aep:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
aep: ACI-AEP
@ -72,7 +72,7 @@ EXAMPLES = r'''
- name: Query an AEP
aci_aep:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
aep: ACI-AEP
@ -80,7 +80,7 @@ EXAMPLES = r'''
- name: Query all AEPs
aci_aep:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new AP
aci_ap:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -62,7 +62,7 @@ EXAMPLES = r'''
- name: Remove an AP
aci_ap:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -71,7 +71,7 @@ EXAMPLES = r'''
- name: Query an AP
aci_ap:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -80,7 +80,7 @@ EXAMPLES = r'''
- name: Query all APs
aci_ap:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -112,14 +112,14 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: create a tenant
aci_tenant:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
- name: create a bridge domain
aci_bd:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -127,7 +127,7 @@ EXAMPLES = r'''
- name: create a subnet
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -137,7 +137,7 @@ EXAMPLES = r'''
- name: create a subnet with options
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -152,7 +152,7 @@ EXAMPLES = r'''
- name: update a subnets scope to private and shared
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -163,14 +163,14 @@ EXAMPLES = r'''
- name: get all subnets
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
- name: get all subnets of specific gateway in specified tenant
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
@ -180,7 +180,7 @@ EXAMPLES = r'''
- name: get specific subnet
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
@ -191,7 +191,7 @@ EXAMPLES = r'''
- name: delete a subnet
aci_bd_subnet:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: absent

View file

@ -76,7 +76,7 @@ EXAMPLES = r'''
---
- name: Create a Snapshot
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: present
@ -84,7 +84,7 @@ EXAMPLES = r'''
- name: Query Existing Snapshots
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
@ -92,7 +92,7 @@ EXAMPLES = r'''
- name: Compare Snapshot Files
aci_config_rollback:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: preview
@ -103,7 +103,7 @@ EXAMPLES = r'''
- name: Rollback Configuration
aci_config_rollback:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: rollback
@ -113,7 +113,7 @@ EXAMPLES = r'''
- name: Rollback Configuration
aci_config_rollback:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: rollback
@ -225,7 +225,7 @@ def main():
aci.post_config()
elif state == 'preview':
aci.result['url'] = '%(protocol)s://%(hostname)s/mqapi2/snapshots.diff.xml' % module.params
aci.result['url'] = '%(protocol)s://%(host)s/mqapi2/snapshots.diff.xml' % module.params
aci.result['filter_string'] = (
'?s1dn=uni/backupst/snapshots-[uni/fabric/configexp-%(export_policy)s]/snapshot-%(snapshot)s&'
's2dn=uni/backupst/snapshots-[uni/fabric/configexp-%(compare_export_policy)s]/snapshot-%(compare_snapshot)s'

View file

@ -69,7 +69,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Create a Snapshot
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: present
@ -79,14 +79,14 @@ EXAMPLES = r'''
- name: Query all Snapshots
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
- name: Query Snapshots associated with a particular Export Policy
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
@ -94,7 +94,7 @@ EXAMPLES = r'''
- name: Delete a Snapshot
aci_config_snapshot:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: absent

View file

@ -69,7 +69,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_contract:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
contract: '{{ contract }}'

View file

@ -86,7 +86,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new contract subject
aci_contract_subject:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -100,7 +100,7 @@ EXAMPLES = r'''
- name: Remove a contract subject
aci_contract_subject:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -110,7 +110,7 @@ EXAMPLES = r'''
- name: Query a contract subject
aci_contract_subject:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -120,7 +120,7 @@ EXAMPLES = r'''
- name: Query all contract subjects
aci_contract_subject:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -63,7 +63,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_subject_filter_binding:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
tenant: '{{ tenant }}'

View file

@ -73,7 +73,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new physical domain
aci_domain:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
@ -82,7 +82,7 @@ EXAMPLES = r'''
- name: Remove a physical domain
aci_domain:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
@ -91,7 +91,7 @@ EXAMPLES = r'''
- name: Add a new VMM domain
aci_domain:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: hyperv_dom
@ -101,7 +101,7 @@ EXAMPLES = r'''
- name: Remove a VMM domain
aci_domain:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: hyperv_dom
@ -111,7 +111,7 @@ EXAMPLES = r'''
- name: Query a specific physical domain
aci_domain:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
@ -120,7 +120,7 @@ EXAMPLES = r'''
- name: Query all domains
aci_domain:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -62,7 +62,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Bind a VMM domain to VLAN pool
aci_domain_to_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: vmw_dom
@ -74,7 +74,7 @@ EXAMPLES = r'''
- name: Remove a VMM domain to VLAN pool binding
aci_domain_to_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: vmw_dom
@ -86,7 +86,7 @@ EXAMPLES = r'''
- name: Bind a physical domain to VLAN pool
aci_domain_to_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
@ -97,7 +97,7 @@ EXAMPLES = r'''
- name: Bind a physical domain to VLAN pool
aci_domain_to_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
@ -108,7 +108,7 @@ EXAMPLES = r'''
- name: Query an domain to VLAN pool binding
aci_domain_to_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
@ -119,7 +119,7 @@ EXAMPLES = r'''
- name: Query all domain to VLAN pool bindings
aci_domain_to_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -55,7 +55,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new vlan pool
aci_encap_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -65,7 +65,7 @@ EXAMPLES = r'''
- name: Remove a vlan pool
aci_encap_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -74,7 +74,7 @@ EXAMPLES = r'''
- name: Query a vlan pool
aci_encap_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -83,7 +83,7 @@ EXAMPLES = r'''
- name: Query all vlan pools
aci_encap_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool_type: vlan

View file

@ -74,7 +74,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new vlan range
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -85,7 +85,7 @@ EXAMPLES = r'''
- name: Remove a vlan range
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -96,7 +96,7 @@ EXAMPLES = r'''
- name: Query a vlan range
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -107,7 +107,7 @@ EXAMPLES = r'''
- name: Query a vlan pool for ranges
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -116,7 +116,7 @@ EXAMPLES = r'''
- name: Query all vlan ranges
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool_type: vlan

View file

@ -76,7 +76,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new EPG
aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -86,7 +86,7 @@ EXAMPLES = r'''
bd: prod_bd
- aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -105,7 +105,7 @@ EXAMPLES = r'''
- name: Remove an EPG
aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
validate_certs: false
@ -116,7 +116,7 @@ EXAMPLES = r'''
- name: Query an EPG
aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -126,14 +126,14 @@ EXAMPLES = r'''
- name: Query all EPGs
aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query
- name: Query all EPGs with a Specific Name
aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
validate_certs: false
@ -142,7 +142,7 @@ EXAMPLES = r'''
- name: Query all EPGs of an App Profile
aci_epg:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
validate_certs: false

View file

@ -53,7 +53,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_epg_monitoring_policy:
hostname: '{{ hostname }}'
host: '{{ hostname }}'
username: '{{ username }}'
password: '{{ password }}'
monitoring_policy: '{{ monitoring_policy }}'

View file

@ -52,7 +52,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new filter to a tenant
aci_filter:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
filter: web_filter
@ -62,7 +62,7 @@ EXAMPLES = r'''
- name: Remove a filter for a tenant
aci_filter:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
filter: web_filter
@ -71,7 +71,7 @@ EXAMPLES = r'''
- name: Query a filter of a tenant
aci_filter:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
filter: web_filter
@ -80,7 +80,7 @@ EXAMPLES = r'''
- name: Query all filters for a tenant
aci_filter:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production

View file

@ -102,17 +102,16 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- aci_filter_entry:
action: "{{ action }}"
host: "{{ inventory_hostname }}"
username: "{{ user }}"
password: "{{ pass }}"
state: "{{ state }}"
entry: "{{ entry }}"
tenant: "{{ tenant }}"
ether_name: "{{ ether_name }}"
icmp_msg_type: "{{ icmp_msg_type }}"
filter: "{{ filter }}"
descr: "{{ descr }}"
host: "{{ inventory_hostname }}"
username: "{{ user }}"
password: "{{ pass }}"
protocol: "{{ protocol }}"
'''
RETURN = ''' # '''

View file

@ -47,7 +47,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- aci_interface_policy_fc:
hostname: '{{ hostname }}'
host: '{{ hostname }}'
username: '{{ username }}'
password: '{{ password }}'
fc_policy: '{{ fc_policy }}'

View file

@ -57,7 +57,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- aci_interface_policy_l2:
hostname: '{{ hostname }}'
host: '{{ hostname }}'
username: '{{ username }}'
password: '{{ password }}'
l2_policy: '{{ l2_policy }}'

View file

@ -114,7 +114,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: creating a Port Channel (PC) Interface Policy Group
aci_interface_policy_leaf_policy_group:
hostname: apic
host: apic
username: yourusername
password: yourpassword
policy_group: policygroupname
@ -126,7 +126,7 @@ EXAMPLES = r'''
- name: creating a Virtual Port Channel (VPC) Interface Policy Group (no description)
aci_interface_policy_leaf_policy_group:
hostname: apic
host: apic
username: yourusername
password: yourpassword
policy_group: policygroupname
@ -137,7 +137,7 @@ EXAMPLES = r'''
- name: creating a Leaf Access Port Policy Group (no description)
aci_interface_policy_leaf_policy_group:
hostname: apic
host: apic
username: yourusername
password: yourpassword
policy_group: policygroupname
@ -148,7 +148,7 @@ EXAMPLES = r'''
- name: deleting an Interface policy Leaf Policy Group
aci_interface_policy_leaf_policy_group:
hostname: apic
host: apic
username: yourusername
password: yourpassword
policy_group: policygroupname

View file

@ -44,7 +44,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new leaf_interface_profile
aci_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname
@ -53,7 +53,7 @@ EXAMPLES = r'''
- name: Remove a leaf_interface_profile
aci_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname
@ -61,14 +61,14 @@ EXAMPLES = r'''
- name: Remove all leaf_interface_profiles
aci_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: absent
- name: Query a leaf_interface_profile
aci_interface_policy_leaf_profile:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
leaf_interface_profile: leafintprfname

View file

@ -55,7 +55,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_interface_policy_lldp:
hostname: '{{ hostname }}'
host: '{{ hostname }}'
username: '{{ username }}'
password: '{{ password }}'
lldp_policy: '{{ lldp_policy }}'

View file

@ -48,7 +48,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_interface_policy_mcp:
hostname: '{{ hostname }}'
host: '{{ hostname }}'
username: '{{ username }}'
password: '{{ password }}'
mcp: '{{ mcp }}'

View file

@ -101,7 +101,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- aci_interface_policy_port_channel:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
port_channel: '{{ port_channel }}'

View file

@ -47,7 +47,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_interface_policy_port_security:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
port_security: '{{ port_security }}'

View file

@ -47,7 +47,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Associating an interface selector profile to a switch policy leaf profile
aci_interface_selector_to_switch_policy_leaf_profile:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -56,7 +56,7 @@ EXAMPLES = r'''
- name: Remove an interface selector profile associated with a switch policy leaf profile
aci_interface_selector_to_switch_policy_leaf_profile:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -65,7 +65,7 @@ EXAMPLES = r'''
- name: Query an interface selector profile associated with a switch policy leaf profile
aci_interface_selector_to_switch_policy_leaf_profile:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name

View file

@ -55,7 +55,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_l3out_route_tag_policy:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
rtp: '{{ rtp_name }}'

View file

@ -65,7 +65,7 @@ notes:
EXAMPLES = r'''
- name: Add a tenant using certifcate authentication
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/admin.key
method: post
@ -75,7 +75,7 @@ EXAMPLES = r'''
- name: Add a tenant using inline YAML
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/admin.key
validate_certs: no
@ -90,7 +90,7 @@ EXAMPLES = r'''
- name: Add a tenant using a JSON string
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/admin.key
validate_certs: no
@ -109,7 +109,7 @@ EXAMPLES = r'''
- name: Add a tenant using an XML string
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/{{ aci_username}}.key
validate_certs: no
@ -120,7 +120,7 @@ EXAMPLES = r'''
- name: Get tenants using password authentication
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
password: '{{ aci_password }}'
method: get
@ -129,7 +129,7 @@ EXAMPLES = r'''
- name: Configure contracts
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/admin.key
method: post
@ -139,7 +139,7 @@ EXAMPLES = r'''
- name: Register leaves and spines
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/admin.key
validate_certs: no
@ -155,7 +155,7 @@ EXAMPLES = r'''
- name: Wait for all controllers to become ready
aci_rest:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
private_key: pki/admin.key
validate_certs: no
@ -370,7 +370,7 @@ def main():
module.fail_json(msg='Failed to parse provided XML payload: %s' % to_text(e), payload=payload)
# Perform actual request using auth cookie (Same as aci_request, but also supports XML)
aci.result['url'] = '%(protocol)s://%(hostname)s/' % aci.params + path.lstrip('/')
aci.result['url'] = '%(protocol)s://%(host)s/' % aci.params + path.lstrip('/')
if aci.params['method'] != 'get':
path += '?rsp-subtree=modified'
aci.result['url'] = update_qsl(aci.result['url'], {'rsp-subtree': 'modified'})

View file

@ -68,7 +68,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: adding a switch policy leaf profile selector associated Node Block range (w/ policy group)
aci_switch_leaf_selector:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -81,7 +81,7 @@ EXAMPLES = r'''
- name: adding a switch policy leaf profile selector associated Node Block range (w/o policy group)
aci_switch_leaf_selector:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -93,7 +93,7 @@ EXAMPLES = r'''
- name: Removing a switch policy leaf profile selector
aci_switch_leaf_selector:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -102,7 +102,7 @@ EXAMPLES = r'''
- name: Querying a switch policy leaf profile selector
aci_switch_leaf_selector:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name

View file

@ -43,7 +43,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: creating a Leaf Profile with description
aci_switch_policy_leaf_profile:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -52,7 +52,7 @@ EXAMPLES = r'''
- name: Deleting a Leaf Profile
aci_switch_policy_leaf_profile:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name
@ -60,7 +60,7 @@ EXAMPLES = r'''
- name: Query a Leaf Profile
aci_switch_policy_leaf_profile:
hostname: apic
host: apic
username: someusername
password: somepassword
leaf_profile: sw_name

View file

@ -57,7 +57,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_taboo_contract:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
taboo_contract: '{{ taboo_contract }}'

View file

@ -43,7 +43,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new tenant
aci_tenant:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -52,7 +52,7 @@ EXAMPLES = r'''
- name: Remove a tenant
aci_tenant:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -60,7 +60,7 @@ EXAMPLES = r'''
- name: Query a tenant
aci_tenant:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -68,7 +68,7 @@ EXAMPLES = r'''
- name: Query all tenants
aci_tenant:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -49,7 +49,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_tenant_action_rule_profile:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
action_rule: '{{ action_rule }}'

View file

@ -78,7 +78,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new EPR policy
aci_epr_policy:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -93,7 +93,7 @@ EXAMPLES = r'''
- name: Remove an EPR policy
aci_epr_policy:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -102,7 +102,7 @@ EXAMPLES = r'''
- name: Query an EPR policy
aci_epr_policy:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
tenant: production
@ -111,7 +111,7 @@ EXAMPLES = r'''
- name: Query all EPR policies
aci_epr_policy:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -51,7 +51,7 @@ extends_documentation_fragment: aci
# FIXME: Add more, better examples
EXAMPLES = r'''
- aci_tenant_span_dst_group:
hostname: '{{ inventory_hostname }}'
host: '{{ inventory_hostname }}'
username: '{{ username }}'
password: '{{ password }}'
dst_group: '{{ dst_group }}'

View file

@ -56,14 +56,14 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- aci_tenant_span_src_group:
host:"{{ inventory_hostname }}"
username:"{{ username }}"
password:"{{ password }}"
tenant:"{{ tenant }}"
src_group:"{{ src_group }}"
dst_group:"{{ dst_group }}"
admin_state:"{{ admin_state }}"
description:"{{ description }}"
host:"{{ inventory_hostname }}"
username:"{{ username }}"
password:"{{ password }}"
'''
RETURN = r'''

View file

@ -50,13 +50,13 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- aci_tenant_span_src_group_to_dst_group:
host:"{{ inventory_hostname }}"
username:"{{ username }}"
password:"{{ password }}"
tenant:"{{ tenant }}"
src_group:"{{ src_group }}"
dst_group:"{{ dst_group }}"
description:"{{ description }}"
host:"{{ inventory_hostname }}"
username:"{{ username }}"
password:"{{ password }}"
'''
RETURN = r'''

View file

@ -50,7 +50,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new VLAN pool
aci_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -59,7 +59,7 @@ EXAMPLES = r'''
- name: Remove a VLAN pool
aci_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -67,7 +67,7 @@ EXAMPLES = r'''
- name: Query a VLAN pool
aci_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -75,7 +75,7 @@ EXAMPLES = r'''
- name: Query all VLAN pools
aci_vlan_pool:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -69,7 +69,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new VLAN encap block
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -79,7 +79,7 @@ EXAMPLES = r'''
- name: Remove a VLAN encap block
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -89,7 +89,7 @@ EXAMPLES = r'''
- name: Query a VLAN encap block
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -99,7 +99,7 @@ EXAMPLES = r'''
- name: Query a VLAN pool for encap blocks
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
pool: production
@ -107,7 +107,7 @@ EXAMPLES = r'''
- name: Query all VLAN encap blocks
aci_vlan_pool_encap_block:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query

View file

@ -58,7 +58,7 @@ extends_documentation_fragment: aci
EXAMPLES = r'''
- name: Add a new VRF to a tenant
aci_vrf:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
vrf: vrf_lab
@ -70,7 +70,7 @@ EXAMPLES = r'''
- name: Remove a VRF for a tenant
aci_vrf:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
vrf: vrf_lab
@ -79,7 +79,7 @@ EXAMPLES = r'''
- name: Query a VRF of a tenant
aci_vrf:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
vrf: vrf_lab
@ -88,7 +88,7 @@ EXAMPLES = r'''
- name: Query all VRFs
aci_vrf:
hostname: apic
host: apic
username: admin
password: SomeSecretPassword
state: query