Update junos_facts gather_network_resources choices (#60467)

*  Add negation choice for individual resource names
This commit is contained in:
Ganesh Nalawade 2019-08-14 19:28:55 +05:30 committed by Nilashish Chakraborty
parent 55d3ecff01
commit 5923a64b20
2 changed files with 20 additions and 1 deletions

View file

@ -8,15 +8,25 @@ The arg spec for the junos facts module.
"""
CHOICES = [
'all',
'!all',
'interfaces',
'!interfaces',
'lacp',
'!lacp',
'lacp_interfaces',
'!lacp_interfaces',
'lag_interfaces',
'!lag_interfaces',
'l2_interfaces',
'!l2_interfaces',
'l3_interfaces',
'!l3_interfaces',
'lldp_global',
'!lldp_global',
'lldp_interfaces',
'!lldp_interfaces',
'vlans',
'!vlans',
]

View file

@ -63,7 +63,16 @@ options:
to a given subset. Possible values for this argument include
all and the resources like interfaces, vlans etc.
Can specify a list of values to include a larger subset.
choices: ['all', 'interfaces', 'lacp', 'lacp_interfaces', 'lag_interfaces', 'l2_interfaces', 'l3_interfaces', 'lldp_global', 'lldp_interfaces', 'vlans']
choices: ['all', '!all',
'interfaces', '!interfaces',
'lacp', '!lacp',
'lacp_interfaces', '!lacp_interfaces',
'lag_interfaces', '!lag_interfaces',
'l2_interfaces', '!l2_interfaces',
'l3_interfaces', '!l3_interfaces',
'lldp_global', '!lldp_global',
'lldp_interfaces', '!lldp_interfaces',
'vlans', '!vlans']
required: false
version_added: "2.9"
requirements: