Skip to content

Commit 1af80e6

Browse files
committed
Commit
1 parent 007b6dd commit 1af80e6

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

README.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Nornir Python Scripts for Network Automation 🚀
2+
3+
![GitHub](https://img.shields.io/badge/GitHub-nornir--python--scripts-blue.svg)
4+
![Python](https://img.shields.io/badge/Python-3.x-blue.svg)
5+
![Automation](https://img.shields.io/badge/Automation-Yes-green.svg)
6+
7+
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.
8+
9+
## Table of Contents
10+
11+
- [Overview](#overview)
12+
- [Features](#features)
13+
- [Installation](#installation)
14+
- [Usage](#usage)
15+
- [Scripts and Runbooks](#scripts-and-runbooks)
16+
- [Contributing](#contributing)
17+
- [License](#license)
18+
- [Contact](#contact)
19+
- [Releases](#releases)
20+
21+
## Overview
22+
23+
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:
24+
25+
- LLDP mapping
26+
- OSPF error detection
27+
- Banner filtering
28+
- CDP mapping
29+
- IP route checking
30+
- And more...
31+
32+
These scripts leverage popular libraries such as NAPALM, Netmiko, and Scrapli to ensure robust and reliable automation.
33+
34+
## Features
35+
36+
- **API Integration**: Easily integrate with network device APIs.
37+
- **Cross-Platform**: Works on Linux and other operating systems.
38+
- **Modular Design**: Each script is designed to be modular for easy use and modification.
39+
- **Extensive Documentation**: Each script includes comments and usage examples.
40+
- **Community Support**: Engage with other users and contributors for support and ideas.
41+
42+
## Installation
43+
44+
To get started with the Nornir Python Scripts, follow these steps:
45+
46+
1. **Clone the Repository**:
47+
```bash
48+
git clone https://github.com/yomalamoula/nornir-python-scripts.git
49+
cd nornir-python-scripts
50+
```
51+
52+
2. **Install Required Libraries**:
53+
Use pip to install the necessary libraries:
54+
```bash
55+
pip install -r requirements.txt
56+
```
57+
58+
3. **Configure Nornir**:
59+
Update the `config.yaml` file with your network device details.
60+
61+
## Usage
62+
63+
To run a specific script, navigate to the script's directory and execute it using Python. For example:
64+
```bash
65+
python lldp_mapping.py
66+
```
67+
68+
Make sure you have the necessary permissions and configurations set up in your environment.
69+
70+
## Scripts and Runbooks
71+
72+
### LLDP Mapping
73+
74+
This script gathers LLDP information from devices and generates a visual representation of the network topology.
75+
76+
### OSPF Error Detection
77+
78+
Detects OSPF issues and provides detailed logs for troubleshooting.
79+
80+
### Banner Filtering
81+
82+
This script filters device banners to ensure compliance with organizational standards.
83+
84+
### CDP Mapping
85+
86+
Generates a detailed map of devices connected via CDP, showing their relationships.
87+
88+
### IP Route Checking
89+
90+
Verifies IP routes across devices and reports any discrepancies.
91+
92+
## Contributing
93+
94+
We welcome contributions from the community! If you would like to contribute, please follow these steps:
95+
96+
1. Fork the repository.
97+
2. Create a new branch (`git checkout -b feature/YourFeature`).
98+
3. Make your changes.
99+
4. Commit your changes (`git commit -m 'Add some feature'`).
100+
5. Push to the branch (`git push origin feature/YourFeature`).
101+
6. Open a Pull Request.
102+
103+
Please ensure that your code follows the existing style and includes comments where necessary.
104+
105+
## License
106+
107+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
108+
109+
## Contact
110+
111+
For questions or suggestions, feel free to reach out:
112+
113+
- **Email**: your.email@example.com
114+
- **Twitter**: [@yourhandle](https://twitter.com/yourhandle)
115+
116+
## Releases
117+
118+
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.
119+
120+
## Conclusion
121+
122+
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!
123+
124+
Explore, automate, and make your network management simpler. For more updates, check the [Releases](https://github.com/yomalamoula/nornir-python-scripts/releases) section frequently.
125+
126+
Happy automating! 🌐

0 commit comments

Comments
 (0)