Giter VIP home page Giter VIP logo

open_pnp_server's Introduction

Cisco PNP without APIC/DNAC

Credits to :

Execution

pip install -r requirements.txt
python3 main.py

Options

define different return IP for the PnP Requests (NAT)

./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

./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 Port

Reference: Cisco Devnet Open-PnP

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 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

open_pnp_server's People

Contributors

oliverl-21 avatar dependabot[bot] avatar renovate[bot] avatar

Stargazers

Tin Tin Hamans avatar

Watchers

 avatar

open_pnp_server's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/pylint.yml
  • actions/checkout v4
  • actions/setup-python v5
pip_requirements
requirements.txt
  • certifi ==2023.11.17
  • chardet ==5.2.0
  • click ==8.1.7
  • Flask ==3.0.0
  • idna ==3.6
  • itsdangerous ==2.1.2
  • Jinja2 ==3.1.3
  • MarkupSafe ==2.1.3
  • requests ==2.31.0
  • urllib3 ==2.1.0
  • Werkzeug ==3.0.1
  • xmltodict ==0.13.0

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: Pip_requirements

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.