summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-13 05:12:01 +0100
committerGitHub <noreply@github.com>2024-02-13 05:12:01 +0100
commit87ddb8c5e89a81959e56829dedc6b9f1bb253388 (patch)
tree0d2374f9c921f0322ce38d90d055e5896e5617ca /interface-definitions
parentfe9147623c9f59e125fb3e967aa0fba2cbf9fb0a (diff)
parent04bf9ee39f8243207ec777d6a5aeec78e3c9d66f (diff)
downloadvyos-1x-87ddb8c5e89a81959e56829dedc6b9f1bb253388.tar.gz
vyos-1x-87ddb8c5e89a81959e56829dedc6b9f1bb253388.zip
Merge pull request #2997 from sarthurdev/T5993
dhcpv6-server: T5993: Add subnet `interface` node, link subnet to locally connected interfaces
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/version/dhcpv6-server-version.xml.i2
-rw-r--r--interface-definitions/service_dhcpv6-server.xml.in15
2 files changed, 16 insertions, 1 deletions
diff --git a/interface-definitions/include/version/dhcpv6-server-version.xml.i b/interface-definitions/include/version/dhcpv6-server-version.xml.i
index bfef27b77..1f30368a3 100644
--- a/interface-definitions/include/version/dhcpv6-server-version.xml.i
+++ b/interface-definitions/include/version/dhcpv6-server-version.xml.i
@@ -1,3 +1,3 @@
<!-- include start from include/version/dhcpv6-server-version.xml.i -->
-<syntaxVersion component='dhcpv6-server' version='4'></syntaxVersion>
+<syntaxVersion component='dhcpv6-server' version='5'></syntaxVersion>
<!-- include end -->
diff --git a/interface-definitions/service_dhcpv6-server.xml.in b/interface-definitions/service_dhcpv6-server.xml.in
index 28b97a64b..daca7b43f 100644
--- a/interface-definitions/service_dhcpv6-server.xml.in
+++ b/interface-definitions/service_dhcpv6-server.xml.in
@@ -97,6 +97,21 @@
</properties>
<children>
#include <include/dhcp/option-v6.xml.i>
+ <leafNode name="interface">
+ <properties>
+ <help>Optional interface for this subnet to accept requests from</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ #include <include/constraint/interface-name.xml.i>
+ </constraint>
+ </properties>
+ </leafNode>
<tagNode name="range">
<properties>
<help>Parameters setting ranges for assigning IPv6 addresses</help>