]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: config schema: add schema version to the top level to allow for future changes
authorVasek Sraier <git@vakabus.cz>
Sun, 9 Oct 2022 11:44:16 +0000 (13:44 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 10 Oct 2022 18:34:27 +0000 (18:34 +0000)
manager/knot_resolver_manager/datamodel/config_schema.py

index 4941d6ade7ae4e8a83199bb185d727b180bc4cb5..d40f225d3ec18769203a77f8fa1dfbee7bd37755 100644 (file)
@@ -84,6 +84,7 @@ class KresConfig(BaseSchema):
         Knot Resolver declarative configuration.
 
         ---
+        version: Version of the configuration schema. By default it is the latest supported by the resolver, but couple of versions back are be supported as well.
         nsid: Name Server Identifier (RFC 5001) which allows DNS clients to request resolver to send back its NSID along with the reply to a DNS request.
         hostname: Internal DNS resolver hostname. Default is machine hostname.
         rundir: Directory where the resolver can create files and which will be it's cwd.
@@ -108,6 +109,7 @@ class KresConfig(BaseSchema):
         lua: Custom Lua configuration.
         """
 
+        version: int = 1
         nsid: Optional[str] = None
         hostname: Optional[str] = None
         rundir: UncheckedPath = UncheckedPath(".")