Migrate layer 2 circuit
This workflow migrates an L2 Core Service to a new Edge Port.
It can be triggered by an operator or automatically by the system during Edge Port migration which is a separate workflow.
Info
Since an L2 Circuit Service has two sides, the workflow must be run separately for each side to fully migrate the service.
input_form_generator(subscription_id)
Generate an input form for migrating a Layer 2 Circuit.
Source code in gso/workflows/l2_circuit/migrate_layer_2_circuit.py
update_subscription_model(subscription, source_edge_port, destination_edge_port, generate_new_vc_id)
Replace the old Edge Port with the newly selected one in the subscription model.
Source code in gso/workflows/l2_circuit/migrate_layer_2_circuit.py
generate_scoped_subscription(subscription, source_edge_port, destination_edge_port)
Calculate what the updated subscription model will look like, but don't update the actual subscription yet.
The new subscription is used for Moodi, but the updated subscription model is not stored yet, to avoid issues recovering when the workflow is aborted.
Source code in gso/workflows/l2_circuit/migrate_layer_2_circuit.py
migrate_layer_2_circuit()
Migrate a Layer 2 Circuit.