mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Remove xml return for junos declarative modules (#26400)
* Remove xml return * Add diff return * Related doc changes
This commit is contained in:
parent
c1ac55147f
commit
1a9b0ae731
13 changed files with 62 additions and 119 deletions
|
@ -129,17 +129,15 @@ EXAMPLES = """
|
|||
"""
|
||||
|
||||
RETURN = """
|
||||
rpc:
|
||||
description: load-configuration RPC send to the device
|
||||
returned: when configuration is changed on device
|
||||
diff:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed.
|
||||
type: string
|
||||
sample: >
|
||||
<interfaces>
|
||||
<interface>
|
||||
<name>ge-0/0/0</name>
|
||||
<description>test interface</description>
|
||||
</interface>
|
||||
</interfaces>
|
||||
[edit interfaces]
|
||||
+ ge-0/0/1 {
|
||||
+ description test-interface;
|
||||
+ }
|
||||
"""
|
||||
import collections
|
||||
|
||||
|
@ -240,8 +238,7 @@ def main():
|
|||
if diff:
|
||||
result.update({
|
||||
'changed': True,
|
||||
'diff': {'prepared': diff},
|
||||
'rpc': tostring(ele)
|
||||
'diff': diff,
|
||||
})
|
||||
|
||||
module.exit_json(**result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue