Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverl-21/open_pnp_server
Open-PnP Server for Cisco Devices, because ZTP Guestshell is "tricky" :P
https://github.com/oliverl-21/open_pnp_server
cisco cisco-ios flask-app pnp
Last synced: about 2 months ago
JSON representation
Open-PnP Server for Cisco Devices, because ZTP Guestshell is "tricky" :P
- Host: GitHub
- URL: https://github.com/oliverl-21/open_pnp_server
- Owner: oliverl-21
- Created: 2021-07-21T07:44:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T17:23:17.000Z (3 months ago)
- Last Synced: 2024-10-18T11:59:04.662Z (3 months ago)
- Topics: cisco, cisco-ios, flask-app, pnp
- Language: Python
- Homepage:
- Size: 122 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cisco PNP without APIC/DNAC
Credits to :
- https://github.com/dmfigol/cisco-pnp-server
- https://github.com/pmeffre/ciscopnp## Execution
```shell
pip install -r requirements.txt
python3 main.py
```
### Optionsdefine different return IP for the PnP Requests (NAT)
```sh
./main.py -i 1.1.1.1
# or
./main.py --ip 1.1.1.1
```
default the Server will run on Port:8080 this can be changed
```sh
./main.py -p 8081
# or
./main.py --port 8081
```## How to use
You have to create a config directory `(./configs)` which must contain:
- "Serial Number of Switch".cfg
Configure your DHCP to point a blank Device to the PnP Server via DHCP Option 43 value: `5A1D;K4;B2;I198.18.168.3;J8080`
- 5: DHCP sub-option for PnP
- A: feature-code for Active
- 1: Version
- D: Debug On- K: Defines the Transport Protocol as 4 = HTTP
- B: Defines the Server Adress as 2 = IPv4
- I: is your Servers IP
- J: Server PortReference: [Cisco Devnet Open-PnP](https://developer.cisco.com/site/open-plug-n-play/learn/learn-open-pnp-protocol/)
The Device will discover the PnP Server on boot via DHCP and query the PnP, which will respond to the Device to fetch a file based on the Device Serial Number serial.cfg.
Can be used in combination with: [oliverl-21/ansible-role-ios_config](https://github.com/oliverl-21/ansible-role-ios_config) via PnP Flow with a dynamic CSV Inventory
## To-Do
Describe the Dynamic Inventory part and usage with Ansible.
## Tested
- cat8kv
- ☑ IOS-XE 17.5.1
- ☑ IOS-XE 17.4.2
- cat 9200(l)
- versions
- cat 9300
- versions☑ Tested and working
☐ not tested
☒ not working