Add examples and language to better showcase the 'parents' parameter in multiple network modules (#34486) (#35955)

* Add additional language and examples for 'parents' parameter to clarify its usage.
(cherry picked from commit 15b0371eb2)
This commit is contained in:
John R Barker 2018-02-09 13:40:25 +00:00 committed by GitHub
parent e2e6e14644
commit 3f475054fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 33 additions and 12 deletions

View file

@ -36,7 +36,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -37,7 +37,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -43,7 +43,7 @@ options:
default: null
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -39,7 +39,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -37,7 +37,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -38,7 +38,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -49,7 +49,7 @@ options:
default: null
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -48,7 +48,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.
@ -237,6 +237,27 @@ EXAMPLES = """
- ip address 172.31.1.1 255.255.255.0
parents: interface Ethernet1
- name: configure ip helpers on multiple interfaces
ios_config:
lines:
- ip helper-address 172.26.1.10
- ip helper-address 172.26.3.8
parents: "{{ item }}"
with_items:
- interface Ethernet1
- interface Ethernet2
- interface GigabitEthernet1
- name: configure policer in Scavenger class
ios_config:
lines:
- conform-action transmit
- exceed-action drop
parents:
- policy-map Foo
- class Scavenger
- police cir 64000
- name: load new acl into device
ios_config:
lines:

View file

@ -41,7 +41,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -47,7 +47,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -36,7 +36,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.

View file

@ -38,7 +38,7 @@ options:
aliases: ['commands']
parents:
description:
- The ordered set of parents that uniquely identify the section
- The ordered set of parents that uniquely identify the section or hierarchy
the commands should be checked against. If the parents argument
is omitted, the commands are checked against the set of top
level or global commands.