Metadata-Version: 2.5
Name: nornir-netmiko
Version: 1.1.0
Summary: Netmiko's plugins for Nornir
Project-URL: repository, https://github.com/ktbyers/nornir_netmiko
Author-email: Kirk Byers <ktbyers@twb-tech.com>
License: Apache-2.0
License-File: LICENSE
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Python: <4.0,>=3.11
Requires-Dist: netmiko>=4.8.0
Requires-Dist: nornir>=3.5.0
Description-Content-Type: text/markdown

# nornir_netmiko
Netmiko Plugins for [Nornir](https://github.com/nornir-automation/nornir)


## Installation

```bash
pip install nornir_netmiko
```

## Development

Run `./tests.sh` with uv to check formatting, lint, types, dependencies, offline
behavior and coverage. AI agents must additionally perform mutation
validation as described in [AGENTS.md](AGENTS.md). See
[the testing plan](testing-plan.md) for behavioral coverage details. No network devices are needed.

## Plugins

### Connections

- netmiko - Connect to network devices using netmiko

### Tasks

- netmiko_commit - Execute Netmiko commit method
- netmiko_file_transfer - Execute Netmiko file_transfer method
- netmiko_multiline - Execute Netmiko send_multiline method (or send_multiline_timing)
- netmiko_save_config - Execute Netmiko save_config method
- netmiko_send_command - Execute Netmiko send_command method (or send_command_timing)
- netmiko_send_config - Execute Netmiko send_config_set method (or send_config_from_file)


## Connection Options

### Platform

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

```python
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.

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