Skip to content

Creating GP4L L2 circuits using orchestration

Service without Airflow

You can test the playbooks to create and delete L2 circuits manually without using Airflow and without storing the service in Maat. To do this, in the provided repo, edit the parameters of lso/create_l2_circuit.json and of lso/delete_l2_circuit.json as desired, then execute the request to either create or delete a L2 circuit:

curl -X POST -H "Content-Type: application/json" -d @/home/ubuntu/gp4l_service_provisioning/lso/create_l2_circuit.json http://localhost:8000/api/playbook/ -v
curl -X POST -H "Content-Type: application/json" -d @/home/ubuntu/gp4l_service_provisioning/lso/delete_l2_circuit.json http://localhost:8000/api/playbook/ -v

If you want to see the playbook results, you previously have to ensure that the LSO callback listener is running (in lso/callback.py in the provided repo).

Service in Airflow

  1. Go to http://127.0.0.1:8081 (or the IP address of your machine if the browser is run from a separate machine)
  2. Go to DAGs tab.
  3. Find "Create L2 Circuit" and "Delete L2 Circuit" and click their left button to unpause them.

Now you can either create a L2 circuit or delete a L2 circuit.

  1. Click "Active", and then click the Play button under "Actions" in the "Create L2 Circuit" or "Delete L2 Circuit" row.
  2. Fill the form and click "Trigger".

You can then see the results under "Runs" and "Recent Tasks" in the "Create L2 Circuit" or "Delete L2 Circuit" row of the Active DAGs.

The results of a successful DAG will be visible in Maat (resources and services), and in the GP4L digital twin (device interfaces configuration).

Service in Airflow with Maat GUI

  1. Go to http://127.0.0.1:9100/gp4l (or the IP address of your machine if the browser is run from a separate machine)
  2. Select either of the two forms.
  3. Fill the form and click the submit button. This will trigger the corresponding Airflow DAG ("Create L2 Circuit" or "Delete L2 Circuit").

You can now go back to Airflow and follow the progress of the triggered DAG.

Video demonstration

The following demo shows a quick video of all the components used together in order to execute the creation and deletion of a L2 circuit in GP4L.