diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-05-16 20:54:44 -0500 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-05-16 23:18:25 -0500 |
commit | 97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424 (patch) | |
tree | c4197371534c7064e3785b093c691be0abeba14e /interface-definitions/include/interface/dhcp-options.xml.i | |
parent | 96d846d27ac818ee9a23bb7194bb58cfb7093387 (diff) | |
download | vyos-1x-97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424.tar.gz vyos-1x-97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424.zip |
T5226: Make host-name constraints to consistent everywhere
Make host-name constraints consistent across all definitions
Diffstat (limited to 'interface-definitions/include/interface/dhcp-options.xml.i')
-rw-r--r-- | interface-definitions/include/interface/dhcp-options.xml.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/dhcp-options.xml.i b/interface-definitions/include/interface/dhcp-options.xml.i index 2ed5fd403..8027769ff 100644 --- a/interface-definitions/include/interface/dhcp-options.xml.i +++ b/interface-definitions/include/interface/dhcp-options.xml.i @@ -12,6 +12,10 @@ <leafNode name="host-name"> <properties> <help>Override system host-name sent to DHCP server</help> + <constraint> + #include <include/constraint/host-name.xml.i> + </constraint> + <constraintErrorMessage>Host-name must be alphanumeric and can contain hyphens</constraintErrorMessage> </properties> </leafNode> <leafNode name="mtu"> |