netconf_validate

NETCONF validate config.

Functions

netconf_validate(→ nornir.core.task.Result)

Validate the datastore configuration.

Module Contents

netconf_validate.netconf_validate(task: nornir.core.task.Task, source: str | None = 'candidate', manager: ncclient.manager.Manager | None = None) nornir.core.task.Result

Validate the datastore configuration.

Parameters:
  • source (str) – Source configuration store

  • manager (Manager) – NETCONF Manager

Examples

Simple example:

> nr.run(task=netconf_validate)
Returns:

Result object with the following attributes set:

* result (RpcResult): Rpc and Manager