Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Install required tools: docker, docker-compose, git, curl, jq

Starting the API

Create a new directory named "cnaas", and then create a docker-compose.yaml file with the following contents in it:

...

This should show the running version of the API, and return an empty list of devices from the database.

Configuring git repositories

To get CNaaS-NMS to generate any configuration you must first populate templates and settings. This is done via two separate git repositories. In this lab we will create the git repositories locally on your machine and have the API container fetch the contents from there.

...

{"status": "success", "data": "Cloned new from remote. Last commit c03813ff000293f606f33f48727b5baf3de68486 master by root at 2021-09-28 11:50:15+00:00"}

Try generating configuration

We'll add a simple device for testing:

...

curl -ks -H "Authorization: Bearer $JWT_AUTH_TOKEN" https://localhost/api/v1.0/device/eosdist1/generate_config -H "Content-Type: application/json" | jq .data.config.available_variables


Continue with Workshop 2