https://github.com/yomalamoula/nornir-python-scripts
This project contains a collection of Python scripts and Nornir runbooks for network automation. The scripts cover a wide range of tasks, including LLDP mapping, OSPF error detection, banner filtering, CDP mapping, IP route checking, and more.
https://github.com/yomalamoula/nornir-python-scripts
arista automation aws jinja2 linux napalm netmiko network nornir nornir-napalm nornir-netmiko nornir-scrapli runbook scrapli
Last synced: about 1 month ago
JSON representation
This project contains a collection of Python scripts and Nornir runbooks for network automation. The scripts cover a wide range of tasks, including LLDP mapping, OSPF error detection, banner filtering, CDP mapping, IP route checking, and more.
- Host: GitHub
- URL: https://github.com/yomalamoula/nornir-python-scripts
- Owner: yomalamoula
- Created: 2025-04-15T04:21:32.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2025-04-15T23:06:31.000Z (about 1 month ago)
- Last Synced: 2025-04-15T23:14:31.701Z (about 1 month ago)
- Topics: arista, automation, aws, jinja2, linux, napalm, netmiko, network, nornir, nornir-napalm, nornir-netmiko, nornir-scrapli, runbook, scrapli
- Language: Python
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nornir Python Scripts for Network Automation π


Welcome to the **Nornir Python Scripts** repository! This project offers a collection of Python scripts and Nornir runbooks designed to streamline network automation tasks. Whether you are managing a small network or a large infrastructure, these scripts will help you automate repetitive tasks, improve efficiency, and reduce human error.
## Table of Contents
- [Overview](#overview)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Scripts and Runbooks](#scripts-and-runbooks)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)
- [Releases](#releases)## Overview
Nornir is a powerful automation framework for network engineers. It provides a simple way to manage network devices using Python. This repository includes scripts that cover a variety of tasks essential for network management, including:
- LLDP mapping
- OSPF error detection
- Banner filtering
- CDP mapping
- IP route checking
- And more...These scripts leverage popular libraries such as NAPALM, Netmiko, and Scrapli to ensure robust and reliable automation.
## Features
- **API Integration**: Easily integrate with network device APIs.
- **Cross-Platform**: Works on Linux and other operating systems.
- **Modular Design**: Each script is designed to be modular for easy use and modification.
- **Extensive Documentation**: Each script includes comments and usage examples.
- **Community Support**: Engage with other users and contributors for support and ideas.## Installation
To get started with the Nornir Python Scripts, follow these steps:
1. **Clone the Repository**:
```bash
git clone https://github.com/yomalamoula/nornir-python-scripts.git
cd nornir-python-scripts
```2. **Install Required Libraries**:
Use pip to install the necessary libraries:
```bash
pip install -r requirements.txt
```3. **Configure Nornir**:
Update the `config.yaml` file with your network device details.## Usage
To run a specific script, navigate to the script's directory and execute it using Python. For example:
```bash
python lldp_mapping.py
```Make sure you have the necessary permissions and configurations set up in your environment.
## Scripts and Runbooks
### LLDP Mapping
This script gathers LLDP information from devices and generates a visual representation of the network topology.
### OSPF Error Detection
Detects OSPF issues and provides detailed logs for troubleshooting.
### Banner Filtering
This script filters device banners to ensure compliance with organizational standards.
### CDP Mapping
Generates a detailed map of devices connected via CDP, showing their relationships.
### IP Route Checking
Verifies IP routes across devices and reports any discrepancies.
## Contributing
We welcome contributions from the community! If you would like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/YourFeature`).
3. Make your changes.
4. Commit your changes (`git commit -m 'Add some feature'`).
5. Push to the branch (`git push origin feature/YourFeature`).
6. Open a Pull Request.Please ensure that your code follows the existing style and includes comments where necessary.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contact
For questions or suggestions, feel free to reach out:
- **Email**: [email protected]
- **Twitter**: [@yourhandle](https://twitter.com/yourhandle)## Releases
For the latest updates and releases, please visit the [Releases](https://github.com/yomalamoula/nornir-python-scripts/releases) section. Here, you can download the latest scripts and runbooks, and execute them in your environment.
## Conclusion
Thank you for checking out the Nornir Python Scripts repository. We hope these scripts help you automate your network tasks effectively. Your feedback and contributions are highly valued, so donβt hesitate to get involved!
Explore, automate, and make your network management simpler. For more updates, check the [Releases](https://github.com/yomalamoula/nornir-python-scripts/releases) section frequently.
Happy automating! π