Add missing RETURN to restconf_config (#53324)
This commit is contained in:
parent
ff0285c6c4
commit
1112e1d0da
1 changed files with 34 additions and 2 deletions
|
@ -69,6 +69,40 @@ EXAMPLES = '''
|
|||
'''
|
||||
|
||||
RETURN = '''
|
||||
candidate:
|
||||
description: The configuration sent to the device.
|
||||
returned: When the method is not delete
|
||||
type: dict
|
||||
sample: |
|
||||
{
|
||||
"vpn-service": [
|
||||
{
|
||||
"customer-name": "red",
|
||||
"vpn-id": "blue_vpn1",
|
||||
"vpn-service-topology": "ietf-l3vpn-svc:any-to-any"
|
||||
}
|
||||
]
|
||||
}
|
||||
running:
|
||||
description: The current running configuration on the device.
|
||||
returned: When the method is not delete
|
||||
type: dict
|
||||
sample: |
|
||||
{
|
||||
"vpn-service": [
|
||||
{
|
||||
"vpn-id": "red_vpn2",
|
||||
"customer-name": "blue",
|
||||
"vpn-service-topology": "ietf-l3vpn-svc:any-to-any"
|
||||
},
|
||||
{
|
||||
"vpn-id": "blue_vpn1",
|
||||
"customer-name": "red",
|
||||
"vpn-service-topology": "ietf-l3vpn-svc:any-to-any"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
'''
|
||||
|
||||
import json
|
||||
|
@ -154,8 +188,6 @@ def main():
|
|||
except ConnectionError as exc:
|
||||
module.fail_json(msg=str(exc), code=exc.code)
|
||||
|
||||
result['response'] = response
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue