simple admin app for managing a netpalm cluster
- make sure you have a netpalm instance running
- git clone the project
git clone https://github.com/tbotnz/netpalm-admin.git && cd netpalm-admin - update the
config.jsonwith yourNETPALM_SERVER_IPNETPALM_SERVER_PORTNETPALM_API_KEY - configure
inventory.jsonwith your inventory (optional) - install the requirements
pip3 install -r requirements.txt - run the app
python3 netpalm-admin.py
for local inventory ensure config.json has the following lines
"inventory_type": "local",
"inventory_file": "inventory_local.json"
configure "inventory_local.json" with your local inventory params accordingly
for netbox inventory ensure config.json has the following lines
"inventory_type": "netbox",
"inventory_file": "inventory_netbox.json"
configure "inventory_netbox.json" with your netbox params accordingly
to use docker you can either use the default config.json file or set some env vars:
export NPA_NETPALM_API_KEY=API_KEY_HERE
export NPA_NETPALM_SERVER=SERVER_HERE"
export NPA_NETPALM_PORT=PORT_HERE
export NPA_INVENTORY_FILE=INVENTORY_FILE_DIR_HERE
export NPA_INVENTORY_TYPE=INVENTORY_TYPE_HERE
build/run:
sudo docker-compose up -d --build
- project currently just a poc in progress, use at your own leisure
