netlab.config¶
Config can be passed to netlab.async_client.NetlabClient using environment variables,
using a json file on your system, or by passing a dict explicitly.
Classes
Passed to |
|
Each of the above configuration options can be specified as environment variables. |
- class netlab.config.NetlabServerConfig¶
Passed to
netlab.async_client.NetlabClientto configure the connection to a server.Example
config = { "host": "192.168.1.10", "user": "administrator", "token": "S25GWP5P2247CMRDNLTCNKATT49KSGEDDPXMTM6A", "port": 9000, } async with NetlabClient(config=config) as client: ...
- class netlab.config.NetlabServerEnvConfig¶
Each of the above configuration options can be specified as environment variables.