ktbyers / nornir_netmiko

Netmiko Plugins for Nornir
Apache License 2.0
80 stars 24 forks source link

nornir_netmiko

Netmiko Plugins for Nornir

Installation

pip install nornir_netmiko

Plugins

Connections

Tasks

Connection Options

Platform

For better usability for napalm and netmiko users, the connection plugin maps the NAPALM base device types into netmiko device types:

napalm_to_netmiko_map = {
    "ios": "cisco_ios",
    "nxos": "cisco_nxos",
    "nxos_ssh": "cisco_nxos",
    "eos": "arista_eos",
    "junos": "juniper_junos",
    "iosxr": "cisco_xr",
}

Extras

The Connection Option extras are combined with the host, username, password, and port from the Host or Connection Object, and then passed to the ConnectHandler.

router1:
  username: cisco
  platform: ios
  connection_options:
    netmiko:
      extras:
        secret: secret
        session_log: router1.txt