diff --git a/gso/workflows/site/create_site.py b/gso/workflows/site/create_site.py index 7e93a5431edc7fa6e050298a0c5b9b39051bf6ef..d1b37b91bd2f7b49c6fc48d7073ba52e3e8646c2 100644 --- a/gso/workflows/site/create_site.py +++ b/gso/workflows/site/create_site.py @@ -43,7 +43,6 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: @validator("site_ts_address", allow_reuse=True) def validate_ts_address(cls, site_ts_address: str) -> str: """Validate that a terminal server address is valid.""" - validate_site_fields_is_unique("site_ts_address", site_ts_address) validate_ipv4_or_ipv6(site_ts_address) return site_ts_address @@ -53,7 +52,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: validate_country_code(country_code) return country_code - @validator("site_internal_id", "site_bgp_community_id", allow_reuse=True) + @validator("site_ts_address", "site_internal_id", "site_bgp_community_id", "site_name", allow_reuse=True) def validate_unique_fields(cls, value: str, field: ModelField) -> str | int: """Validate that the internal and :term:`BGP` community IDs are unique.""" return validate_site_fields_is_unique(field.name, value) @@ -64,7 +63,6 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: The site name must consist of three uppercase letters, followed by an optional single digit. """ - validate_site_fields_is_unique("site_name", site_name) validate_site_name(site_name) return site_name