netconf_commit

NETCONF commit.

Functions

netconf_commit(→ nornir.core.task.Result)

Commit operation.

Module Contents

netconf_commit.netconf_commit(task: nornir.core.task.Task, manager: ncclient.manager.Manager | None = None, confirmed: bool | None = False, timeout: int | None = 60, persist: int | None = None, persist_id: int | None = None) nornir.core.task.Result

Commit operation.

Parameters:
  • manager (Manager) – NETCONF Manager

  • confirmed (boolean) – Commit confirm

  • timeout (int) – commit confirm timeout

  • persist (int) – survive a session termination

  • persist_id (int) – must equal given value of persist in original commit operation

Examples

Simple example:

> nr.run(task=netconf_commit)
With a carried manager session::

> nr.run(task=netconf_commit, manager=manager)

Returns:

Result object with the following attributes set:

* result (RpcResult): Rpc and Manager