Skip to content
Snippets Groups Projects

Feature/l2circuits

Merged Neda Moeini requested to merge feature/l2circuits into develop
3 files
+ 9
7
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -16,9 +16,9 @@ from gso.services.subscriptions import get_product_id_by_name
def import_layer_2_circuit_subscription(subscription_id: UUIDstr) -> State:
"""Take an imported subscription, and turn it into a layer 2 circuit subscription."""
old_layer_2_circuit_subscription = ImportedLayer2Circuit.from_subscription(subscription_id)
if old_layer_2_circuit_subscription.layer_2_circuit_type == Layer2CircuitServiceType.IMPORTED_GEANT_PLUS:
if old_layer_2_circuit_subscription.layer_2_circuit_service_type == Layer2CircuitServiceType.IMPORTED_GEANT_PLUS:
new_subscription_id = get_product_id_by_name(ProductName.GEANT_PLUS)
elif old_layer_2_circuit_subscription.layer_2_circuit_type == Layer2CircuitServiceType.IMPORTED_EXPRESSROUTE:
elif old_layer_2_circuit_subscription.layer_2_circuit_service_type == Layer2CircuitServiceType.IMPORTED_EXPRESSROUTE:
new_subscription_id = get_product_id_by_name(ProductName.EXPRESSROUTE)
else:
msg = f"This {old_layer_2_circuit_subscription.layer_2_circuit_service_type} is already imported."
Loading