]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: datamodel: forward: options added
authorAleš Mrázek <ales.mrazek@nic.cz>
Wed, 1 Mar 2023 13:11:07 +0000 (14:11 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 9 Jun 2023 11:54:07 +0000 (11:54 +0000)
manager/knot_resolver_manager/datamodel/forward_schema.py

index 6226156ce9298d725d3cd018c9ae5de9da4bf927..b14cc6e20b9bac058f843e11d26c39a3f4081a67 100644 (file)
@@ -26,14 +26,29 @@ class ForwardServerSchema(ConfigSchema):
     ca_file: Optional[FilePath] = None
 
 
+class ForwardOptionsSchema(ConfigSchema):
+    """
+    Configuration options for forward subtree.
+
+    ---
+    authoritative: The forwarding target is an authoritative server.
+    dnssec: Enable/disable DNSSEC.
+    """
+
+    authoritative: bool = False
+    dnssec: bool = True
+
+
 class ForwardSchema(ConfigSchema):
     """
-    Configuration of Forward Zone.
+    Configuration of forward subtree.
 
     ---
     subtree: Subtree to forward.
     servers: Forward server configuration.
+    options: Configuration options for forward subtree.
     """
 
     subtree: DomainName
     servers: Union[List[IPAddressOptionalPort], List[ForwardServerSchema]]
+    options: ForwardOptionsSchema = ForwardOptionsSchema()