From f67b24c7d9f00b4de023259027928c1b58ad74dd Mon Sep 17 00:00:00 2001
From: Jorge Sasiain <jorge.sasiain@ehu.eus>
Date: Thu, 23 Nov 2023 12:35:56 +0000
Subject: [PATCH] NAT-329: remove accidentally commited file

---
 gso/utils/validators.py | 36 ------------------------------------
 1 file changed, 36 deletions(-)
 delete mode 100644 gso/utils/validators.py

diff --git a/gso/utils/validators.py b/gso/utils/validators.py
deleted file mode 100644
index 3677003a6..000000000
--- a/gso/utils/validators.py
+++ /dev/null
@@ -1,36 +0,0 @@
-from pydantic import BaseModel, validator, ModelField
-
-from gso.utils.helpers import (
-    validate_country_code,
-    validate_ipv4_or_ipv6,
-    validate_site_fields_is_unique,
-    validate_site_name,
-)
-
-def common_ts_address_validator(cls, site_ts_address: str) -> str:
-    """Validate that a terminal server address is valid."""
-    validate_ipv4_or_ipv6(site_ts_address)
-    return site_ts_address
-
-def common_country_code_validator(cls, country_code: str) -> str:
-    """Validate that the country code exists."""
-    validate_country_code(country_code)
-    return country_code
-
-def common_unique_fields_validator(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)
-
-def common_site_name_validator(cls, site_name: str) -> str:
-    """Validate the site name.
-
-    The site name must consist of three uppercase letters, followed by an optional single digit.
-    """
-    validate_site_name(site_name)
-    return site_name
-
-def validator_decorator(func):
-    def wrapper(cls, *args, **kwargs):
-        return validator(func.__name__, pre=True, allow_reuse=True)(*args, **kwargs)
-
-    return wrapper
-- 
GitLab