Proxy Minion to manage RESTCONF Devices
Jamie (Bear) Murphy <email@example.com>
To be able to use this module you need to enable RESTCONF on your device and have https enabled.
Cisco Configuration example:
switch# conf t switch(config)# restconf switch(config)# ip http secure-server
RESTCONF requires modern OS distributions. This plugin has been written specifically to use JSON RESTCONF endpoints
restconf proxy configuration requires the following parameters in order
to connect to the network switch:
Specifies the type of connection transport to use. Valid values for the
The RESTCONF standard explicitly requires https, but http is included as an option
as some manufacturers have ignored this requirement.
The IP address or DNS host name of the RESTCONF device.
The username for the device to authenticate the RESTCONF requests.
The password for the device to authenticate the RESTCONF requests.
False(str, optional, default:true)
Verify the RESTCONF SSL certificate?
When there is no certificate configuration on the device and this option is
True (default), the commands will fail with the following error:
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed.
In this case, you either need to configure a proper certificate on the
device (recommended), or bypass the checks setting this argument as
with all the security risks considered as you may be MITM'd.
proxy: proxytype: restconf host: switch1.example.com username: example password: example verify: false
Runs a connection test via http/https. Returns an array.
Required. Initialize device config and test an initial connection
Connection finished initializing?
Triggers connection test. Returns True or False
request(path, method='GET', dict_payload=None)¶
Trigger http request to device
Closes connection with the device.