diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-16 19:06:13 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-16 19:06:15 +0200 |
commit | 56810c62f91d3f11e23b2836bb4d14db6ec8ce25 (patch) | |
tree | 7b1e6cd298a2986ddd79bd5e198c8b39735cd426 /interface-definitions | |
parent | 3d00140453b3967370c77ddd9dac4af223a7ddce (diff) | |
download | vyos-1x-56810c62f91d3f11e23b2836bb4d14db6ec8ce25.tar.gz vyos-1x-56810c62f91d3f11e23b2836bb4d14db6ec8ce25.zip |
xml: l2tp: T3724: add constraint regex for host-name
It's the same regex as used for "set system host-name" to not allow too much
garbage here...
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/vpn_l2tp.xml.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index 6cb0d4544..6a88756a7 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -37,6 +37,9 @@ <leafNode name="host-name"> <properties> <help>Sent to the client (LAC) in the Host-Name attribute</help> + <constraint> + <regex>[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]</regex> + </constraint> </properties> </leafNode> </children> |