Skip to content
Snippets Groups Projects
Commit d27f5c94 authored by Aleš Mrázek's avatar Aleš Mrázek
Browse files

manager: datamodel: forward: options added

parent 2420e55d
Branches
Tags
1 merge request!1313manager: datamodel improvements
......@@ -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()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment