diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-21 18:06:34 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-21 18:06:34 +0100 |
commit | af319217365094259caaea644105465612cceb38 (patch) | |
tree | 13ca7d0c223e29b501027081de8690b2c7ebd5d1 /interface-definitions/dhcp-server.xml | |
parent | a595d9a18cddc3a5eaffe8f3856775295ff1e6a1 (diff) | |
download | vyos-1x-af319217365094259caaea644105465612cceb38.tar.gz vyos-1x-af319217365094259caaea644105465612cceb38.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')
-rw-r--r-- | interface-definitions/dhcp-server.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/dhcp-server.xml b/interface-definitions/dhcp-server.xml index c05cb4e1d..d95784f4e 100644 --- a/interface-definitions/dhcp-server.xml +++ b/interface-definitions/dhcp-server.xml @@ -354,6 +354,9 @@ <format>h:h:h:h:h:h</format> <description>MAC address used in static mapping [REQUIRED]</description> </valueHelp> + <constraint> + <validator name="mac-address"/> + </constraint> </properties> </leafNode> <leafNode name="static-mapping-parameters"> |