summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-25 19:37:42 +0200
committerGitHub <noreply@github.com>2024-04-25 19:37:42 +0200
commit9291c34a301c5c45ef0e466d6ef41339675177c4 (patch)
tree44a579429d99c1286349c66a74c2331289e8b6cb /interface-definitions
parent018b940f685b01a9765657ec25724853cff25188 (diff)
parentec94901d7c87a1b64c9401bde4afefcb96b7dd77 (diff)
downloadvyos-1x-9291c34a301c5c45ef0e466d6ef41339675177c4.tar.gz
vyos-1x-9291c34a301c5c45ef0e466d6ef41339675177c4.zip
Merge pull request #3362 from vyos/mergify/bp/sagitta/pr-3361
T6258: Add sysctl base-reachable-time for IPv6 (backport #3361)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/interface/base-reachable-time.xml.i16
-rw-r--r--interface-definitions/include/interface/ipv6-options.xml.i1
2 files changed, 17 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/base-reachable-time.xml.i b/interface-definitions/include/interface/base-reachable-time.xml.i
new file mode 100644
index 000000000..fb0d70101
--- /dev/null
+++ b/interface-definitions/include/interface/base-reachable-time.xml.i
@@ -0,0 +1,16 @@
+<!-- include start from interface/base-reachable-time.xml.i -->
+<leafNode name="base-reachable-time">
+ <properties>
+ <help>Base reachable time in seconds</help>
+ <valueHelp>
+ <format>u32:1-86400</format>
+ <description>Base reachable time in seconds</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-86400"/>
+ </constraint>
+ <constraintErrorMessage>Base reachable time must be between 1 and 86400 seconds</constraintErrorMessage>
+ </properties>
+ <defaultValue>30</defaultValue>
+</leafNode>
+<!-- include end -->
diff --git a/interface-definitions/include/interface/ipv6-options.xml.i b/interface-definitions/include/interface/ipv6-options.xml.i
index edb4a74f9..ec6ec64ee 100644
--- a/interface-definitions/include/interface/ipv6-options.xml.i
+++ b/interface-definitions/include/interface/ipv6-options.xml.i
@@ -5,6 +5,7 @@
</properties>
<children>
#include <include/interface/adjust-mss.xml.i>
+ #include <include/interface/base-reachable-time.xml.i>
#include <include/interface/disable-forwarding.xml.i>
#include <include/interface/ipv6-accept-dad.xml.i>
#include <include/interface/ipv6-address.xml.i>