nornir.core.plugins.register

class nornir.core.plugins.register.PluginRegister(entry_point: str)
auto_register() → None
available = {}
deregister(name: str) → None

Deregisters a registered plugin by its name

Parameters:name – name of the plugin to deregister
Raises:nornir.core.exceptions.PluginNotRegistered
deregister_all() → None

Deregisters all registered plugins

get_plugin(name: str) → T

Fetches the plugin by name if already registered

Parameters:name – name of the plugin
Raises:nornir.core.exceptions.PluginNotRegistered
register(name: str, plugin: T) → None

Registers a plugin with a specified name

Parameters:
  • name – name of the connection plugin to register
  • plugin – plugin class
Raises:

:obj:`nornir.core.exceptions.PluginAlreadyRegistered` if – another plugin with the specified name was already registered