From 1ea264c34ae6f34bb20f757db0b266d7228f7b29 Mon Sep 17 00:00:00 2001 From: Hakan Calim <hakan.calim@fau.de> Date: Fri, 24 Nov 2023 16:00:23 +0100 Subject: [PATCH] NAT-329: added checks to validate juniper interface members --- gso/workflows/iptrunk/create_iptrunk.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gso/workflows/iptrunk/create_iptrunk.py b/gso/workflows/iptrunk/create_iptrunk.py index 983a1854..e1549c53 100644 --- a/gso/workflows/iptrunk/create_iptrunk.py +++ b/gso/workflows/iptrunk/create_iptrunk.py @@ -161,6 +161,16 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: def validate_iptrunk_unique_interface_side_b(cls, side_b_ae_members: list[LAGMember]) -> list[LAGMember]: return validate_iptrunk_unique_interface(side_b_ae_members) + @validator("side_a_ae_members", allow_reuse=True) + def validate_interface_name_members(cls, side_a_ae_members: list[LAGMember]) -> list[LAGMember]: + ret_val = None + if get_router_vendor(router_a) == RouterVendor.NOKIA: + ret_val = side_a_ae_members + else: + ret_val = validate_interface_name_list(side_a_ae_members) + + return ret_val + user_input_side_b = yield CreateIptrunkSideBForm return ( -- GitLab