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 17:59:35 +0100
commit79af3560e7b2f88b6850739b0e30ee372c51f63b (patch)
tree4b4b774e1ed9262e584054b8f868d7c3eab664b7 /interface-definitions/dhcp-server.xml.in
parent173e4599394c0283953ef2a8299ff94eca802369 (diff)
downloadvyos-1x-79af3560e7b2f88b6850739b0e30ee372c51f63b.tar.gz
vyos-1x-79af3560e7b2f88b6850739b0e30ee372c51f63b.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.
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">