{"id":21163031,"url":"https://github.com/oliverl-21/open_pnp_server","last_synced_at":"2025-03-14T16:22:50.872Z","repository":{"id":189987631,"uuid":"388036256","full_name":"oliverl-21/Open_PnP_Server","owner":"oliverl-21","description":"Open-PnP Server for Cisco Devices, because ZTP Guestshell is \"tricky\" :P","archived":false,"fork":false,"pushed_at":"2024-10-16T17:23:17.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-18T11:59:04.662Z","etag":null,"topics":["cisco","cisco-ios","flask-app","pnp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oliverl-21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-21T07:44:08.000Z","updated_at":"2024-10-16T17:18:22.000Z","dependencies_parsed_at":"2024-05-06T01:32:31.713Z","dependency_job_id":"31c8a725-8c1b-4e5e-bb25-b38e0ba1de01","html_url":"https://github.com/oliverl-21/Open_PnP_Server","commit_stats":null,"previous_names":["oliverl-21/open-pnp-server","oliverl-21/openpnpserver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverl-21%2FOpen_PnP_Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverl-21%2FOpen_PnP_Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverl-21%2FOpen_PnP_Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliverl-21%2FOpen_PnP_Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliverl-21","download_url":"https://codeload.github.com/oliverl-21/Open_PnP_Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243607293,"owners_count":20318385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cisco","cisco-ios","flask-app","pnp"],"created_at":"2024-11-20T13:37:19.130Z","updated_at":"2025-03-14T16:22:50.842Z","avatar_url":"https://github.com/oliverl-21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cisco PNP without APIC/DNAC\n\nCredits to : \n- https://github.com/dmfigol/cisco-pnp-server\n- https://github.com/pmeffre/ciscopnp\n\n## Execution\n\n```shell\npip install -r requirements.txt\npython3 main.py\n```\n### Options\n\ndefine different return IP for the PnP Requests (NAT)\n```sh\n./main.py -i 1.1.1.1\n# or\n./main.py --ip 1.1.1.1\n```\ndefault the Server will run on Port:8080 this can be changed\n```sh\n./main.py -p 8081\n# or\n./main.py --port 8081\n```\n\n## How to use\n\nYou have to create a config directory `(./configs)` which must contain:\n\n - \"Serial Number of Switch\".cfg\n\nConfigure your DHCP to point a blank Device to the PnP Server via DHCP Option 43 value: `5A1D;K4;B2;I198.18.168.3;J8080`\n\n- 5: DHCP sub-option for PnP\n- A: feature-code for Active\n- 1: Version\n- D: Debug On\n\n- K: Defines the Transport Protocol as 4 = HTTP\n- B: Defines the Server Adress as 2 = IPv4\n- I: is your Servers IP\n- J: Server Port\n\nReference: [Cisco Devnet Open-PnP](https://developer.cisco.com/site/open-plug-n-play/learn/learn-open-pnp-protocol/)\n\nThe 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.\n\nCan 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\n\n## To-Do\n\nDescribe the Dynamic Inventory part and usage with Ansible.\n\n## Tested\n\n- cat8kv\n  - \u0026#9745; IOS-XE 17.5.1\n  - \u0026#9745; IOS-XE 17.4.2\n- cat 9200(l)\n  - versions\n- cat 9300\n  - versions\n\n\u0026#9745; Tested and working\n\u0026#9744; not tested\n\u0026#9746; not working\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverl-21%2Fopen_pnp_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliverl-21%2Fopen_pnp_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliverl-21%2Fopen_pnp_server/lists"}