From 97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Tue, 16 May 2023 20:54:44 -0500 Subject: T5226: Make host-name constraints to consistent everywhere Make host-name constraints consistent across all definitions --- interface-definitions/dns-domain-name.xml.in | 4 ++-- interface-definitions/include/interface/dhcp-options.xml.i | 4 ++++ interface-definitions/vpn-l2tp.xml.in | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/interface-definitions/dns-domain-name.xml.in b/interface-definitions/dns-domain-name.xml.in index 9eb1a208f..ef34ecbf5 100644 --- a/interface-definitions/dns-domain-name.xml.in +++ b/interface-definitions/dns-domain-name.xml.in @@ -73,9 +73,9 @@ Host name for static address mapping - [A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9] + #include - invalid hostname + Host-name must be alphanumeric and can contain hyphens 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 @@ Override system host-name sent to DHCP server + + #include + + Host-name must be alphanumeric and can contain hyphens diff --git a/interface-definitions/vpn-l2tp.xml.in b/interface-definitions/vpn-l2tp.xml.in index ec186cd23..ee0edc3e3 100644 --- a/interface-definitions/vpn-l2tp.xml.in +++ b/interface-definitions/vpn-l2tp.xml.in @@ -38,8 +38,9 @@ Sent to the client (LAC) in the Host-Name attribute - [A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9] + #include + Host-name must be alphanumeric and can contain hyphens -- cgit v1.2.3