controller_driver
drunc.controller.controller_driver
Classes
ControllerDriver(address, token)
Source code in drunc/controller/controller_driver.py
Methods:
log_on_server(text, severity='INFO', target='', execute_along_path=False, execute_on_all_subsequent_children_in_path=True, timeout=60)
Logs a message to the server's log system.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The message to log. |
required |
target
|
str
|
The target node for the log message. Defaults to "". |
''
|
execute_along_path
|
bool
|
Whether to execute the log command along the path. Defaults to False. |
False
|
execute_on_all_subsequent_children_in_path
|
bool
|
Whether to execute the log command on all subsequent children in the path. Defaults to True. |
True
|
timeout
|
int | float
|
The timeout for the gRPC request in seconds. Defaults to 60. |
60
|
Returns:
| Type | Description |
|---|---|
LogOnServerResponse
|
None |
Raises:
| Type | Description |
|---|---|
RpcError
|
If the gRPC request fails. |