nornir.__init__

nornir.__init__.InitNornir(config_file: str = '', dry_run: bool = False, *, inventory: dict[str, Any] | None = None, ssh: dict[str, Any] | None = None, logging: dict[str, Any] | None = None, core: dict[str, Any] | None = None, runner: dict[str, Any] | None = None, user_defined: dict[str, Any] | None = None) Nornir

Instantiate and configure a Nornir object.

Parameters:
  • config_file (str) – Path to the configuration file (optional)

  • dry_run (bool) – Whether to simulate changes or not

  • inventory (dict) – Inventory configuration section

  • ssh (dict) – SSH configuration section

  • logging (dict) – Logging configuration section

  • core (dict) – Core configuration section

  • runner (dict) – Runner configuration section

  • user_defined (dict) – User-defined configuration section

Returns:

fully instantiated and configured

Return type:

nornir.core.Nornir