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 gp4l/gp4l_dags/skeleton_lso_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/gp4l/gp4l_dags/skeleton_lso_l2_circuit.json http://localhost:8000/api/playbook/ -v
curl -X POST -H "Content-Type: application/json" -d @/home/ubuntu/gp4l_service_provisioning/gp4l/gp4l_dags/skeleton_lso_l2_circuit.json http://localhost:8000/api/playbook/ -v

Make sure to change in the above commands /home/ubuntu/gp4l_service_provisioning/ to your repository's directory.

If you want to see the playbook results, you previously have to ensure that an LSO callback listener is running and listening in the right port (see gp4l/gp4l_dags/lso_api.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 "Configure Interface", "Create L2 Circuit", and "Delete L2 Circuit" and click their left button to unpause them.

Now you can either configure an interface, create a L2 circuit, or delete a L2 circuit.

  1. Click "Active", and then click the Play button under "Actions" in the "Configure Interface", "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 "Configure Interface", "Create L2 Circuit", or "Delete L2 Circuit" row of the Active DAGs.

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

L2 Circuit Service in Airflow with Maat GUI

The L2 circuit service can also be triggered from Maat as an alternative from Airflow. To do so:

  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 provision of two interfaces followed by the creation and deletion of a L2 circuit in GP4L.

A demo of an older version of the L2 circuit service provisioning is also available in the following video.