summaryrefslogtreecommitdiff
path: root/interface-definitions/dhcp-server.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-21 17:58:49 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-21 18:02:15 +0100
commit91f5b0dd47615c8ff6c405af5c5ffffb800a7df9 (patch)
tree690d8dc299292bc2cd4fabd3f15f09fb258c4bb7 /interface-definitions/dhcp-server.xml.in
parent0743cb3533ded0929950aac217302dec111d5b5c (diff)
downloadvyos-1x-91f5b0dd47615c8ff6c405af5c5ffffb800a7df9.tar.gz
vyos-1x-91f5b0dd47615c8ff6c405af5c5ffffb800a7df9.zip
dhcp: T3237: add constraint to static-mapping mac-address node
The format of the CLI specified MAC address was not validated as only addresses with a colon as seperator are supported. Constraint has been added. (cherry picked from commit 79af3560e7b2f88b6850739b0e30ee372c51f63b)
Diffstat (limited to 'interface-definitions/dhcp-server.xml.in')
-rw-r--r--interface-definitions/dhcp-server.xml.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in
index 912e4eaf7..aba2bea8a 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -335,11 +335,14 @@
</leafNode>
<leafNode name="mac-address">
<properties>
- <help>MAC address of static mapping [REQUIRED]</help>
+ <help>Media Access Control (MAC) address</help>
<valueHelp>
<format>h:h:h:h:h:h</format>
- <description>MAC address used in static mapping [REQUIRED]</description>
+ <description>Hardware (MAC) address</description>
</valueHelp>
+ <constraint>
+ <validator name="mac-address"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="static-mapping-parameters">