All Projects → robertcsapo → cisco-pnp-ztp-guestshell

robertcsapo / cisco-pnp-ztp-guestshell

Licence: other
Cisco Zero Touch Protocol (ZTP) with Python Scripts

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to cisco-pnp-ztp-guestshell

catalyst9k-network-automation
Sample python scripts for automation workflows for feature sets present in Catalyst Switching using openly available YANG data models
Stars: ✭ 40 (+135.29%)
Mutual labels:  cisco, ios-xe
Jamf-Nation-Roadshow-London-2018
No description or website provided.
Stars: ✭ 16 (-5.88%)
Mutual labels:  provision
ztpgenerator
Python tool simplifying the ZTP process for network device provisioning
Stars: ✭ 32 (+88.24%)
Mutual labels:  ztp
topolograph
Topolograph.com is an online project which can visualize OSPF/ISIS topology based on single OSPF LinkState DataBase scrapping from one network device ( thanks OSPF =). Then you can not only see (and check) the shortest path from source to destination, but also see the outcome from link or node failure along the path to the destination. The exist…
Stars: ✭ 84 (+394.12%)
Mutual labels:  cisco
language-cisco
Add syntax highlighting to Cisco configuration files in Atom
Stars: ✭ 48 (+182.35%)
Mutual labels:  cisco
dne-security-code
No description or website provided.
Stars: ✭ 30 (+76.47%)
Mutual labels:  cisco
iosxrv-x64-vbox
IOS XR VirtualBox Vagrant Image Generation tools
Stars: ✭ 72 (+323.53%)
Mutual labels:  cisco
spark-netflow
NetFlow data source for Spark SQL and DataFrames
Stars: ✭ 16 (-5.88%)
Mutual labels:  cisco
gen-cisco
🧨 Generates Cisco scripts based on YAML files
Stars: ✭ 29 (+70.59%)
Mutual labels:  cisco
Firepower O365 Feed Parser
This is a Sample Script that can parse the O365 Web Service API and upload it to Firepower Management Center as Group Objects.
Stars: ✭ 56 (+229.41%)
Mutual labels:  cisco
DirectFire Converter
DirectFire Firewall Converter - Network Security, Next-Generation Firewall Configuration Conversion, Firewall Syntax Translation and Firewall Migration Tool - supports Cisco ASA, Fortinet FortiGate (FortiOS), Juniper SRX (JunOS), SSG / Netscreen (ScreenOS) and WatchGuard (support for further devices in development). Similar to FortiConverter, Sm…
Stars: ✭ 34 (+100%)
Mutual labels:  cisco
azure-iot-explorer
Cross-platform UI for interacting with devices attached to Azure IoT Hub
Stars: ✭ 174 (+923.53%)
Mutual labels:  pnp
testing-4-cloud
Testing for the Cloud
Stars: ✭ 19 (+11.76%)
Mutual labels:  provision
ARF-Converter
Bulk ARF file converter
Stars: ✭ 15 (-11.76%)
Mutual labels:  cisco
finesseGadgets
Collection of gadgets for Cisco Finesse
Stars: ✭ 25 (+47.06%)
Mutual labels:  cisco
cheat-sheets
Cheat sheets to help you in daily hands-on tasks of trouble shooting, configuration, and diagnostics with Fortinet, HP/Aruba, Cisco, Checkpoint and others' gear.
Stars: ✭ 63 (+270.59%)
Mutual labels:  cisco
notes
CCIE routing and switching notes and references, with a general directory and specific topic directories.
Stars: ✭ 23 (+35.29%)
Mutual labels:  cisco
sastre
Automation Tools for Cisco SD-WAN Powered by Viptela
Stars: ✭ 43 (+152.94%)
Mutual labels:  cisco
pyaci
Python Bindings for Cisco ACI REST API
Stars: ✭ 42 (+147.06%)
Mutual labels:  cisco
mvp-monitor
📊 Microsoft MVPs Monitor
Stars: ✭ 30 (+76.47%)
Mutual labels:  pnp

Cisco ZTP Underlay provision script

Requirements

  • Hosted Python Flask server with ZTP scripts
    -- main.py - main service for http
    -- ztp.py - python bootstrap config through GuestShell
    -- provision.py - function to wait for ZTP.
    -- ztpcli.py - post script config

Installation

  • Python 3.6+
    • Download Source Code
git clone -b https://github.com/robertcsapo/cisco-pnp-ztp-guestshell.git
  • Install python modules and start application
cd cisco-pnp-ztp-guestshell
pip install -r requirements.txt
python main.py
  • Application running
Serving Flask app "main" (lazy loading)
Environment: production
  WARNING: This is a development server. Do not use it in a production deployment.
  Use a production WSGI server instead.
Debug mode: off
Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)

Supported on Cisco IOS-XE 16.6+

How to Configure the DHCP pool (on IOS-XE)

Device> enable
Device# configure terminal
Device(config)# ip dhcp pool pnp_device_pool
Device(config-dhcp)# network 10.1.1.0 255.255.255.0
Device(config-dhcp)# default-router 10.1.1.1
Device(config-dhcp)# option 67 ascii http://198.51.100.1/http.py
Device(config-dhcp)# end

For more examples

Cisco IOS-XE 17.2
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/172/b_172_programmability_cg/zero_touch_provisioning.html
Cisco IOS-XE 16.6
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/zero_touch_provisioning.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].