Skip to content
Snippets Groups Projects

Feature/vrf

Merged Neda Moeini requested to merge feature/vrf into develop
All threads resolved!
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
"""A workflow for terminating a VRF subscription."""
from typing import Any
from orchestrator.forms import FormPage
@@ -30,8 +31,10 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
@model_validator(mode="before")
def vrf_must_have_empty_router_list(cls, data: Any) -> Any:
if vrf_subscription.vrf.vrf_router_list:
msg = ("VRF must not have any routers assigned to it before it can be deleted. Please remove all"
" routers from the VRF first.")
msg = (
"VRF must not have any routers assigned to it before it can be deleted. Please remove all"
" routers from the VRF first."
)
raise ValueError(msg)
return data
Loading