summaryrefslogtreecommitdiff
path: root/interface-definitions/service_router-advert.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-30 22:54:48 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-30 22:54:48 +0200
commitf75f9cf6aae10c061e7b757b4e8a658b4457def7 (patch)
treedb5b106ce09ec054df6dd1bb16edc0b69af61bc8 /interface-definitions/service_router-advert.xml.in
parente06948a5445f5ef8d16d2acdaac032c6a7c257be (diff)
downloadvyos-1x-f75f9cf6aae10c061e7b757b4e8a658b4457def7.tar.gz
vyos-1x-f75f9cf6aae10c061e7b757b4e8a658b4457def7.zip
router-advert: T2745: migrate to get_config_dict()
Diffstat (limited to 'interface-definitions/service_router-advert.xml.in')
-rw-r--r--interface-definitions/service_router-advert.xml.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/interface-definitions/service_router-advert.xml.in b/interface-definitions/service_router-advert.xml.in
index 6a4706ab7..5a472fc9a 100644
--- a/interface-definitions/service_router-advert.xml.in
+++ b/interface-definitions/service_router-advert.xml.in
@@ -32,6 +32,7 @@
</constraint>
<constraintErrorMessage>Hop count must be between 0 and 255</constraintErrorMessage>
</properties>
+ <defaultValue>64</defaultValue>
</leafNode>
<leafNode name="default-lifetime">
<properties>
@@ -69,10 +70,11 @@
<description>Default router has high preference</description>
</valueHelp>
<constraint>
- <regex>(low|medium|high)</regex>
+ <regex>^(low|medium|high)$</regex>
</constraint>
<constraintErrorMessage>Default preference must be low, medium or high</constraintErrorMessage>
</properties>
+ <defaultValue>medium</defaultValue>
</leafNode>
<leafNode name="dnssl">
<properties>
@@ -116,6 +118,7 @@
</constraint>
<constraintErrorMessage>Maximum interval must be between 4 and 1800 seconds</constraintErrorMessage>
</properties>
+ <defaultValue>600</defaultValue>
</leafNode>
<leafNode name="min">
<properties>
@@ -191,9 +194,10 @@
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4294967295"/>
- <regex>(infinity)</regex>
+ <regex>^(infinity)$</regex>
</constraint>
</properties>
+ <defaultValue>14400</defaultValue>
</leafNode>
<leafNode name="valid-lifetime">
<properties>
@@ -214,6 +218,7 @@
<regex>(infinity)</regex>
</constraint>
</properties>
+ <defaultValue>2592000</defaultValue>
</leafNode>
</children>
</tagNode>
@@ -233,6 +238,7 @@
</constraint>
<constraintErrorMessage>Reachable time must be 0 or between 1 and 3600000 milliseconds</constraintErrorMessage>
</properties>
+ <defaultValue>0</defaultValue>
</leafNode>
<leafNode name="retrans-timer">
<properties>
@@ -250,6 +256,7 @@
</constraint>
<constraintErrorMessage>Retransmit interval must be 0 or between 1 and 4294967295 milliseconds</constraintErrorMessage>
</properties>
+ <defaultValue>0</defaultValue>
</leafNode>
<leafNode name="no-send-advert">
<properties>