summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-19 11:32:04 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-19 11:32:07 +0200
commit2985035bcb2f3732e15a41e3c2ee6c6c93a6836e (patch)
treea02d0cb2a4c07bc14fad313c5130368238032097 /interface-definitions
parent59e5b5eb4c0507f9d3831483152a748b58560bfd (diff)
downloadvyos-1x-2985035bcb2f3732e15a41e3c2ee6c6c93a6836e.tar.gz
vyos-1x-2985035bcb2f3732e15a41e3c2ee6c6c93a6836e.zip
dhcp-server: T3672: re-add missing "name" CLI option
This option is mandatory and must be user configurable as it needs to match on both sides.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/dhcp-server.xml.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in
index 4551d75a9..2707ce96d 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -34,6 +34,15 @@
</constraint>
</properties>
</leafNode>
+ <leafNode name="name">
+ <properties>
+ <help>Peer name used to identify connection</help>
+ <constraint>
+ <regex>[-_a-zA-Z0-9.]+</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid failover peer name. May only contain letters, numbers and .-_</constraintErrorMessage>
+ </properties>
+ </leafNode>
<leafNode name="status">
<properties>
<help>Failover hierarchy</help>