From 3786d64968e85fe6d8d73dbf94c0fbee9db48b9c Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Wed, 30 Oct 2024 15:17:11 +0100 Subject: [PATCH] Make bgp authentication key nullable --- gso/cli/imports.py | 2 +- gso/products/product_blocks/bgp_session.py | 4 ++-- .../create_imported_nren_l3_core_service.py | 2 +- .../nren_l3_core_service/create_nren_l3_core_service.py | 2 +- .../nren_l3_core_service/modify_nren_l3_core_service.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gso/cli/imports.py b/gso/cli/imports.py index 08e01de9..08251975 100644 --- a/gso/cli/imports.py +++ b/gso/cli/imports.py @@ -248,7 +248,7 @@ class NRENL3CoreServiceImportModel(BaseModel): bfd_interval: int | None = None bfd_multiplier: int | None = None has_custom_policies: bool = False - authentication_key: str + authentication_key: str | None multipath_enabled: bool = False send_default_route: bool = False is_passive: bool = False diff --git a/gso/products/product_blocks/bgp_session.py b/gso/products/product_blocks/bgp_session.py index 65c5f0a0..c4088462 100644 --- a/gso/products/product_blocks/bgp_session.py +++ b/gso/products/product_blocks/bgp_session.py @@ -45,7 +45,7 @@ class BGPSessionProvisioning(BGPSessionInactive, lifecycle=[SubscriptionLifecycl bfd_multiplier: int | None = None families: list[IPFamily] has_custom_policies: bool - authentication_key: str + authentication_key: str | None multipath_enabled: bool send_default_route: bool is_multi_hop: bool @@ -69,7 +69,7 @@ class BGPSession(BGPSessionProvisioning, lifecycle=[SubscriptionLifecycle.ACTIVE #: Whether any custom policies exist for this session. has_custom_policies: bool #: The authentication key of the :term:`BGP` session. - authentication_key: str + authentication_key: str | None #: Whether multi-path is enabled. multipath_enabled: bool #: Whether we send a last resort route. diff --git a/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py b/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py index 35ab8563..ae32599f 100644 --- a/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py +++ b/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py @@ -32,7 +32,7 @@ def initial_input_form_generator() -> FormGenerator: bfd_interval: int | None = None bfd_multiplier: int | None = None has_custom_policies: bool = False - authentication_key: str + authentication_key: str | None multipath_enabled: bool = False send_default_route: bool = False is_passive: bool = False diff --git a/gso/workflows/nren_l3_core_service/create_nren_l3_core_service.py b/gso/workflows/nren_l3_core_service/create_nren_l3_core_service.py index 5c3d2a92..2b9ade91 100644 --- a/gso/workflows/nren_l3_core_service/create_nren_l3_core_service.py +++ b/gso/workflows/nren_l3_core_service/create_nren_l3_core_service.py @@ -68,7 +68,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: bfd_interval: int | None = None bfd_multiplier: int | None = None has_custom_policies: bool = False - authentication_key: str + authentication_key: str | None multipath_enabled: bool = False send_default_route: bool = False is_passive: bool = False diff --git a/gso/workflows/nren_l3_core_service/modify_nren_l3_core_service.py b/gso/workflows/nren_l3_core_service/modify_nren_l3_core_service.py index 1d092aaf..0b275587 100644 --- a/gso/workflows/nren_l3_core_service/modify_nren_l3_core_service.py +++ b/gso/workflows/nren_l3_core_service/modify_nren_l3_core_service.py @@ -64,7 +64,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator: bfd_interval: int | None = None bfd_multiplier: int | None = None has_custom_policies: bool = False - authentication_key: str + authentication_key: str | None multipath_enabled: bool = False send_default_route: bool = False is_passive: bool = False -- GitLab