Skip to content

simple admin app for managing a netpalm cluster

License

Notifications You must be signed in to change notification settings

tom0010/netpalm-admin

 
 

Repository files navigation

netpalm-admin

simple admin app for managing a netpalm cluster

netpalm commandatron

getting started

  • 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.json with your NETPALM_SERVER_IP NETPALM_SERVER_PORT NETPALM_API_KEY
  • configure inventory.json with your inventory (optional)
  • install the requirements pip3 install -r requirements.txt
  • run the app python3 netpalm-admin.py

local inventory

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

netbox inventory

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

docker

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

notice

  • project currently just a poc in progress, use at your own leisure

About

simple admin app for managing a netpalm cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.9%
  • CSS 5.8%
  • HTML 1.5%
  • SCSS 1.4%
  • Python 0.2%
  • Less 0.2%