Connections
- class nornir_routeros.plugins.connections.RouterOsApi
Connects to the RouterOS device using the RouterOS API (with SSL by default).
- close()
Close the connection with the device
- Return type:
None
- open(hostname, username, password, port, platform, extras=None, configuration=None)
Connect to the device and populate the attribute
connectionwith the underlying connection.- Parameters:
extras (
Optional[Dict[str,Any]]) –Extra arguments for
RouterOsApiPool.In addition to
RouterOsApiPool’s ssl parameters, this plugin also supports usingssl_ca_fileto specify a root certificate bundle.
- Return type:
None
1labMT:
2 hostname: 192.0.2.1
3 platform: routeros
4 port: 8728
5 connection_options:
6 routerosapi:
7 extras:
8 use_ssl: False