Fix #4103 Support json format in junos_command module (#19045)

This commit is contained in:
Ganesh Nalawade 2016-12-16 02:31:23 +05:30 committed by Peter Sprygada
parent ad99d52679
commit ee5d5c3e84

View file

@ -98,12 +98,13 @@ options:
output and apply the conditionals path to the result set. output and apply the conditionals path to the result set.
required: false required: false
default: 'xml' default: 'xml'
choices: ['xml', 'text'] choices: ['xml', 'text', 'json']
requirements: requirements:
- junos-eznc - junos-eznc
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. 'json' format is supported
for JUNON version >= 14.2
""" """
EXAMPLES = """ EXAMPLES = """
@ -219,7 +220,7 @@ def main():
commands=dict(type='list'), commands=dict(type='list'),
rpcs=dict(type='list'), rpcs=dict(type='list'),
display=dict(default='xml', choices=['text', 'xml'], display=dict(default='xml', choices=['text', 'xml', 'json'],
aliases=['format', 'output']), aliases=['format', 'output']),
wait_for=dict(type='list', aliases=['waitfor']), wait_for=dict(type='list', aliases=['waitfor']),