summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-06 14:32:15 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-06 14:32:21 +0200
commit0d4a19b42d0f0c70cb3ec2119b3d8dbb67efdc75 (patch)
tree735c07bb2774550ec36c28b8444ca59489f82e04 /interface-definitions
parent4bc6e6b60070f53910c23b9927a31d36f0dec507 (diff)
downloadvyos-1x-0d4a19b42d0f0c70cb3ec2119b3d8dbb67efdc75.tar.gz
vyos-1x-0d4a19b42d0f0c70cb3ec2119b3d8dbb67efdc75.zip
dyndns: T5445: add possibility to specify update interval (timeout)
set service dns dynamic timeout <60-3600>
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/dns-dynamic.xml.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/dns-dynamic.xml.in b/interface-definitions/dns-dynamic.xml.in
index c7b45b8f7..a0720f3aa 100644
--- a/interface-definitions/dns-dynamic.xml.in
+++ b/interface-definitions/dns-dynamic.xml.in
@@ -150,6 +150,20 @@
</tagNode>
</children>
</tagNode>
+ <leafNode name="timeout">
+ <properties>
+ <help>Time in seconds to wait between DNS updates</help>
+ <valueHelp>
+ <format>u32:60-3600</format>
+ <description>Time in seconds</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 60-3600"/>
+ </constraint>
+ <constraintErrorMessage>Timeout must be between 60 and 3600 seconds</constraintErrorMessage>
+ </properties>
+ <defaultValue>300</defaultValue>
+ </leafNode>
</children>
</node>
</children>