inventory

class nornir_utils.plugins.inventory.YAMLInventory(host_file: str = 'hosts.yaml', group_file: str = 'groups.yaml', defaults_file: str = 'defaults.yaml')
load() Inventory
nornir_utils.plugins.inventory.load_credentials(host: Host, username: Optional[str] = None, password: Optional[str] = None) None

load_credentials is an transform_functions to add credentials to every host. Environment variables NORNIR_USERNAME and NORNIR_PASSWORD or arguments can be used.

Parameters:
  • username – Device username

  • password – Device password