Proxy Minion to manage RESTCONF Devices
Jamie (Bear) Murphy <jamiemurphyit@gmail.com>
new
any
Note
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
Note
RESTCONF requires modern OS distributions. This plugin has been written specifically to use JSON RESTCONF endpoints
The restconf
proxy configuration requires the following parameters in order
to connect to the network switch:
https
(str)Specifies the type of connection transport to use. Valid values for the
connection are https
, and http
.
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.
True
or False
(str, optional, default:true)Verify the RESTCONF SSL certificate?
When there is no certificate configuration on the device and this option is
set as True
(default), the commands will fail with the following error:
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
.
Warning
In this case, you either need to configure a proper certificate on the
device (recommended), or bypass the checks setting this argument as False
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
Trigger http request to device
Closes connection with the device.