Skip to content
Snippets Groups Projects
Commit ac944609 authored by Hakan Calim's avatar Hakan Calim Committed by Neda Moeini
Browse files

NAT-329 added interface name validation for juniper members

parent 9d8bc93f
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !125. Comments created here will be created in the context of that merge request.
......@@ -37,6 +37,7 @@ from gso.utils.helpers import (
available_lags_choices,
get_router_vendor,
set_isis_to_90000,
validate_interface_name_list,
)
logger = getLogger(__name__)
......@@ -155,6 +156,11 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
raise ValueError(msg)
return new_lag_interface
@validator("new_lag_member_interfaces", allow_reuse=True, pre=True, always=True)
def is_interface_names_valid_juniper(cls, new_lag_member_interfaces: list[LAGMember]) -> list[LAGMember]:
vendor = get_router_vendor(new_router)
return validate_interface_name_list(new_lag_member_interfaces, vendor)
new_side_input = yield NewSideIPTrunkForm
return (
migrate_form_input.dict()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment