doc: network: fix syntax errors in examples (#5780)

This commit is contained in:
René Moser 2016-12-01 11:48:40 +01:00 committed by Matt Clay
parent 3f81a65e53
commit 507559dba5
21 changed files with 98 additions and 98 deletions

View file

@ -148,7 +148,7 @@ vars:
- name: Enable eAPI access with default configuration
eos_eapi:
state: started
provider: {{ cli }}
provider: "{{ cli }}"
- name: Enable eAPI with no HTTP, HTTPS at port 9443, local HTTP at port 80, and socket enabled
eos_eapi:
@ -158,12 +158,12 @@ vars:
local_http: yes
local_http_port: 80
socket: yes
provider: {{ cli }}
provider: "{{ cli }}"
- name: Shutdown eAPI access
eos_eapi:
state: stopped
provider: {{ cli }}
provider: "{{ cli }}"
"""
RETURN = """

View file

@ -88,9 +88,9 @@ EXAMPLES = '''
address: 1.2.3.4
acct_port: 2084
host_timeout: 10
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# Radius Server Host Key Configuration
- name: "Radius Server Host Key Configuration"
@ -101,8 +101,8 @@ EXAMPLES = '''
key: hello
encrypt_type: 7
host: inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
username: "{{ un }}"
password: "{{ pwd }}"
# TACACS Server Host Configuration
- name: "Tacacs Server Host Configuration"

View file

@ -86,8 +86,8 @@ EXAMPLES = '''
report_supp: true
v3_report_supp: true
host: "{{ inventory_hostname }}"
username: {{ un }}
password: {{ pwd }}
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -57,33 +57,33 @@ EXAMPLES = '''
# Ensure system mtu is 9126
- nxos_mtu:
sysmtu: 9216
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# Config mtu on Eth1/1 (routed interface)
- nxos_mtu:
interface: Ethernet1/1
mtu: 1600
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# Config mtu on Eth1/3 (switched interface)
- nxos_mtu:
interface: Ethernet1/3
mtu: 9216
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# Unconfigure mtu on a given interface
- nxos_mtu:
interface: Ethernet1/3
mtu: 9216
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
state: absent
'''

View file

@ -81,9 +81,9 @@ EXAMPLES = '''
server: 1.2.3.4
key_id: 32
prefer: enabled
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -77,9 +77,9 @@ EXAMPLES = '''
key_id: 32
md5string: hello
auth_type: text
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -65,9 +65,9 @@ EXAMPLES = '''
master: true
stratum: 12
logging: false
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -112,7 +112,7 @@ vars:
- name: Enable NXAPI access with default configuration
nxos_nxapi:
provider: {{ cli }}
provider: "{{ cli }}"
- name: Enable NXAPI with no HTTP, HTTPS at port 9443 and sandbox disabled
nxos_nxapi:
@ -120,12 +120,12 @@ vars:
https_port: 9443
https: yes
enable_sandbox: no
provider: {{ cli }}
provider: "{{ cli }}"
- name: remove NXAPI configuration
nxos_nxapi:
state: absent
provider: {{ cli }}
provider: "{{ cli }}"
"""
RETURN = """

View file

@ -110,9 +110,9 @@ EXAMPLES = '''
- nxos_pim_interface:
interface: eth1/33
state: absent
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ensure the interface has pim-sm enabled with the appropriate priority and hello interval
- nxos_pim_interface:
@ -120,9 +120,9 @@ EXAMPLES = '''
dr_prio: 10
hello_interval: 40
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ensure join-prune policies exist
- nxos_pim_interface:
@ -131,17 +131,17 @@ EXAMPLES = '''
jp_policy_out: JPOUT
jp_type_in: routemap
jp_type_out: routemap
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ensure defaults are in place
- nxos_pim_interface:
interface: eth1/33
state: default
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -62,9 +62,9 @@ EXAMPLES = '''
community: TESTING7
group: network-operator
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -47,9 +47,9 @@ EXAMPLES = '''
- nxos_snmp_contact:
contact: Test
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -82,9 +82,9 @@ EXAMPLES = '''
snmp_host: 3.3.3.3
community: TESTING
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -44,17 +44,17 @@ EXAMPLES = '''
- nxos_snmp_location:
location: Test
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ensure snmp location is not configured
- nxos_snmp_location:
location: Test
state: absent
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -54,17 +54,17 @@ EXAMPLES = '''
- nxos_snmp_traps:
group: lldp
state: enabled
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ensure lldp trap is not configured
- nxos_snmp_traps:
group: lldp
state: disabled
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -73,9 +73,9 @@ EXAMPLES = '''
group: network-operator
auth: md5
pwd: test_password
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -62,17 +62,17 @@ EXAMPLES = '''
- nxos_udld:
aggressive: disabled
msg_time: 20
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# Ensure agg mode is globally enabled and msg time is 15
- nxos_udld:
aggressive: enabled
msg_time: 15
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -51,26 +51,26 @@ EXAMPLES = '''
interface: Ethernet1/1
mode: aggressive
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# Remove the aggressive config only if it's currently in aggressive mode and then disable udld (switch default)
- nxos_udld_interface:
interface: Ethernet1/1
mode: aggressive
state: absent
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ensure Ethernet1/1 has aggressive mode enabled
- nxos_udld_interface:
interface: Ethernet1/1
mode: enabled
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -45,9 +45,9 @@ EXAMPLES = '''
# ENSURE VTP DOMAIN IS CONFIGURED
- nxos_vtp_domain:
domain: ntc
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''

View file

@ -56,17 +56,17 @@ EXAMPLES = '''
- nxos_vtp_password:
password: ntc
state: present
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
# ENSURE VTP PASSWORD IS REMOVED
- nxos_vtp_password:
password: ntc
state: absent
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -43,9 +43,9 @@ EXAMPLES = '''
# ENSURE VTP VERSION IS 2
- nxos_vtp_version:
version: 2
host: {{ inventory_hostname }}
username: {{ un }}
password: {{ pwd }}
host: "{{ inventory_hostname }}"
username: "{{ un }}"
password: "{{ pwd }}"
'''
RETURN = '''

View file

@ -186,7 +186,7 @@ vars:
- name: load config from file
sros_config:
src: {{ inventory_hostname }}.cfg
src: "{{ inventory_hostname }}.cfg"
provider: "{{ cli }}"
save: yes
"""