Remove xml return for junos declarative modules (#26400)

*  Remove xml return
*  Add diff return
*  Related doc changes
This commit is contained in:
Ganesh Nalawade 2017-07-04 21:49:26 +05:30 committed by GitHub
commit 1a9b0ae731
13 changed files with 62 additions and 119 deletions

View file

@ -118,6 +118,16 @@ EXAMPLES = """
"""
RETURN = """
diff:
description: Configuration difference before and after applying change.
returned: when configuration is changed.
type: string
sample: >
[edit system login]
+ user test-user {
+ uid 2005;
+ class read-only;
+ }
"""
from functools import partial
@ -265,7 +275,7 @@ def main():
if diff:
result.update({
'changed': True,
'diff': {'prepared': diff}
'diff': diff
})
module.exit_json(**result)