summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-16 19:06:13 +0200
committerChristian Poessinger <christian@poessinger.com>2021-10-16 19:06:15 +0200
commit56810c62f91d3f11e23b2836bb4d14db6ec8ce25 (patch)
tree7b1e6cd298a2986ddd79bd5e198c8b39735cd426
parent3d00140453b3967370c77ddd9dac4af223a7ddce (diff)
downloadvyos-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...
-rw-r--r--interface-definitions/vpn_l2tp.xml.in3
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>