Generate kickstart files based on the data in netbox.
Create config.py
in the instance
folder that contains:
NETBOX_URL
NETBOX_TOKEN
poetry run env FLASK_APP=netbox_kickstart_generator flask run
If you wish to run in development mode, set FLASK_ENV
to development
:
export FLASK_ENV=development
To see the kickstart which would be generated for specific SN, run:
curl http://127.0.0.1:5000/kickstart -H "X-System-Serial-Number: MXQ7140CHN"
Make sure to run black
before each commit to ensure code style.