adds FAQ TOC entry, links & examples to modules (#38706)

* adds FAQ TOC entry, links & examples to modules
* moves link to Notes, corrects examples

(cherry picked from commit 0ebc0b9e5a)
pull/39086/head
Alicia Cozine 7 years ago committed by Toshio Kuratomi
parent 5ec8a19b79
commit a2df7ab75e

@ -32,6 +32,7 @@ For documentation on using a particular network module, consult the :doc:`list o
:caption: User Guide :caption: User Guide
user_guide/index user_guide/index
user_guide/faq
user_guide/network_best_practices_2.5 user_guide/network_best_practices_2.5
user_guide/network_debug_troubleshooting user_guide/network_debug_troubleshooting
user_guide/network_working_with_command_output user_guide/network_working_with_command_output

@ -36,6 +36,8 @@ description:
extends_documentation_fragment: eos extends_documentation_fragment: eos
notes: notes:
- Tested against EOS 4.15 - Tested against EOS 4.15
- Abbreviated commands are NOT idempotent, see
L(Network FAQ,../network/user_guide/faq.html#why-do-the-config-modules-always-return-changed-true-with-abbreviated-commands).
options: options:
lines: lines:
description: description:
@ -257,6 +259,14 @@ EXAMPLES = """
eos_config: eos_config:
diff_against: intended diff_against: intended
intended_config: "{{ lookup('file', 'master.cfg') }}" intended_config: "{{ lookup('file', 'master.cfg') }}"
- name: for idempotency, use full-form commands
eos_config:
lines:
# - shut
- shutdown
# parents: int eth1
parents: interface Ethernet1
""" """
RETURN = """ RETURN = """

@ -35,6 +35,8 @@ description:
extends_documentation_fragment: ios extends_documentation_fragment: ios
notes: notes:
- Tested against IOS 15.6 - Tested against IOS 15.6
- Abbreviated commands are NOT idempotent, see
L(Network FAQ,../network/user_guide/faq.html#why-do-the-config-modules-always-return-changed-true-with-abbreviated-commands).
options: options:
lines: lines:
description: description:
@ -285,6 +287,14 @@ EXAMPLES = """
- name: save running to startup when modified - name: save running to startup when modified
ios_config: ios_config:
save_when: modified save_when: modified
- name: for idempotency, use full-form commands
ios_config:
lines:
# - shut
- shutdown
# parents: int gig1/0/11
parents: interface GigabitEthernet1/0/11
""" """
RETURN = """ RETURN = """

@ -27,6 +27,8 @@ extends_documentation_fragment: iosxr
notes: notes:
- Tested against IOS XRv 6.1.2 - Tested against IOS XRv 6.1.2
- This module does not support netconf connection - This module does not support netconf connection
- Abbreviated commands are NOT idempotent, see
L(Network FAQ,../network/user_guide/faq.html#why-do-the-config-modules-always-return-changed-true-with-abbreviated-commands).
- Avoid service disrupting changes (viz. Management IP) from config replace. - Avoid service disrupting changes (viz. Management IP) from config replace.
- Do not use C(end) in the replace config file. - Do not use C(end) in the replace config file.
options: options:
@ -170,6 +172,14 @@ EXAMPLES = """
src: config.cfg src: config.cfg
replace: config replace: config
backup: yes backup: yes
- name: for idempotency, use full-form commands
iosxr_config:
lines:
# - shut
- shutdown
# parents: int g0/0/0/1
parents: interface GigabitEthernet0/0/0/1
""" """
RETURN = """ RETURN = """

@ -143,6 +143,8 @@ requirements:
notes: notes:
- This module requires the netconf system service be enabled on - This module requires the netconf system service be enabled on
the remote device being managed. the remote device being managed.
- Abbreviated commands are NOT idempotent, see
L(Network FAQ,../network/user_guide/faq.html#why-do-the-config-modules-always-return-changed-true-with-abbreviated-commands).
- Loading JSON-formatted configuration I(json) is supported - Loading JSON-formatted configuration I(json) is supported
starting in Junos OS Release 16.1 onwards. starting in Junos OS Release 16.1 onwards.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4. - Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
@ -174,6 +176,12 @@ EXAMPLES = """
- name: confirm a previous commit - name: confirm a previous commit
junos_config: junos_config:
confirm_commit: yes confirm_commit: yes
- name: for idempotency, use full-form commands
junos_config:
lines:
# - set int ge-0/0/1 unit 0 desc "Test interface"
- set interfaces ge-0/0/1 unit 0 description "Test interface"
""" """
RETURN = """ RETURN = """

@ -229,6 +229,9 @@ options:
set it to I(intended). set it to I(intended).
required: false required: false
version_added: "2.4" version_added: "2.4"
notes:
- Abbreviated commands are NOT idempotent, see
L(Network FAQ,../network/user_guide/faq.html#why-do-the-config-modules-always-return-changed-true-with-abbreviated-commands).
""" """
EXAMPLES = """ EXAMPLES = """
@ -269,6 +272,13 @@ EXAMPLES = """
replace_src: config.txt replace_src: config.txt
replace: config replace: config
- name: for idempotency, use full-form commands
nxos_config:
lines:
# - shut
- shutdown
# parents: int eth1/1
parents: interface Ethernet1/1
""" """
RETURN = """ RETURN = """

@ -36,6 +36,8 @@ description:
extends_documentation_fragment: vyos extends_documentation_fragment: vyos
notes: notes:
- Tested against VYOS 1.1.7 - Tested against VYOS 1.1.7
- Abbreviated commands are NOT idempotent, see
L(Network FAQ,../network/user_guide/faq.html#why-do-the-config-modules-always-return-changed-true-with-abbreviated-commands).
options: options:
lines: lines:
description: description:
@ -112,6 +114,12 @@ EXAMPLES = """
vyos_config: vyos_config:
src: vyos.cfg src: vyos.cfg
backup: yes backup: yes
- name: for idempotency, use full-form commands
vyos_config:
lines:
# - set int eth eth2 description 'OUTSIDE'
- set interface ethernet eth2 description 'OUTSIDE'
""" """
RETURN = """ RETURN = """

Loading…
Cancel
Save