This is a configuration agent which exposes HTTPS endpoints to perform dynamic network configuration on switches running SONiC. It restful API server is go-server-server
Getting Started
Build Rest-API
Execute ./build.sh
The above should generate 2 Docker images, 1 which is used for local development on your VM and 1 which is used for deployment on a TOR
Run docker images to check if rest-api dockers were generated
REPOSITORY TAG IMAGE ID CREATED SIZE rest-api-image latest d2815fcb7356 2 days ago 222MB rest-api-image-test_local latest e62219a0bae2 2 days ago 222MB
rest-api-image-test_local is for local testing on a dev VM and rest-api-image is for TOR testing/deployment
The production image is also stored into a compressed archive rest-api-image.gz
Running Rest-API container
Run Rest-API container locally on a VM and execute unit tests