From 7e35e3daa99cabe0aaace76d5beae268cb69fdbc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ale=C5=A1=20Mr=C3=A1zek?= <ales.mrazek@nic.cz>
Date: Fri, 31 Mar 2023 13:13:52 +0200
Subject: [PATCH] manager: datamodel: tsig removed from view_schema

---
 manager/knot_resolver_manager/datamodel/view_schema.py | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/manager/knot_resolver_manager/datamodel/view_schema.py b/manager/knot_resolver_manager/datamodel/view_schema.py
index 210336602..7609651e0 100644
--- a/manager/knot_resolver_manager/datamodel/view_schema.py
+++ b/manager/knot_resolver_manager/datamodel/view_schema.py
@@ -23,18 +23,12 @@ class ViewSchema(ConfigSchema):
 
     ---
     subnets: Identifies the client based on his subnet.
-    tsig: Identifies the client based on a TSIG key name (for testing purposes, TSIG signature is not verified!).
+    tags: Tags to link with other policy rules.
     options: Configuration options for clients identified by the view.
     answer: Direct approach how to handle request from clients identified by the view.
-    tags: Tags to link with other policy rules.
     """
 
     subnets: Optional[Union[List[IPNetwork], IPNetwork]] = None
-    tsig: Optional[List[str]] = None
     tags: Optional[List[IDPattern]] = None
-    answer: Optional[Literal["allow", "refused"]] = None
     options: ViewOptionsSchema = ViewOptionsSchema()
-
-    def _validate(self) -> None:
-        if self.tsig is None and self.subnets is None:
-            raise ValueError("'subnets' or 'rsig' must be configured")
+    answer: Optional[Literal["allow", "refused"]] = None
-- 
GitLab