netconf_rpc¶
NETCONF rpc generic call.
Functions¶
|
This method is a "bare-bones" rpc call which does not apply any |
Module Contents¶
- netconf_rpc.netconf_rpc(task: nornir.core.task.Task, payload: str, manager: ncclient.manager.Manager | None = None) nornir.core.task.Result ¶
This method is a “bare-bones” rpc call which does not apply any formatting/standardization beyond the outer most rpc tag.
- Parameters:
payload (str) – Payload snippet to apply
manager (Manager) – NETCONF Manager
Examples
- Simple example::
> desired_payload=’<save-config xmlns=”http://cisco.com/yang/cisco-ia”/>’ > nr.run(task= netconf_rpc, payload=desired_payload)
- Returns:
Result object with the following attributes set:
* result (RpcResult): Rpc and Manager