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)
pull/35940/merge
John R Barker 7 years ago committed by GitHub
parent e2e6e14644
commit 3f475054fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save