Simple flask application that will react upon get requests (copy commands) from a NX device performing POAP. It will then wait for 10 minutes (for the device restart) to let NSO know that it should be onboarded
- Device restarts without configuration
- Starts POAP process
- Gets DHCP address
- Downloads poap.py script
- At the end, the poap.py script makes a get request using the copy command with its serial number
- The middleware starts a new thread that will wait 10 minutes before sending requests to NSO
- See Pipfile.lock for python libraries
- NSO 5.3 or greater with NX driver
- Clone this repo on any OS with python 3 installed
- Install dependencies (you can use pipenv - As long as you have flask and requests should be ok)
- Add env variables with NSO credentials. For example
export NSO_URL=[http|https]://<NSO_IP>:<NSO_PORT>/restconf
export NSO_USER=admin
export NSO_PASSWORD=supersecret
- Start flask application
python run.py
- Make sure to map the correct values for your infrastructure in the poap.py file (lines 20-25 and 142)
- Santiago Flores Kanter (sfloresk@cisco.com)