summaryrefslogtreecommitdiff
path: root/src/validators/fqdn
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-05 21:01:31 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-05 22:42:29 +0100
commit96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a (patch)
tree8d2ddfca0ce711059081a4ce9d65ef2f80449248 /src/validators/fqdn
parent44f6896311a559687458a4a6c4fadb86b0a91646 (diff)
downloadvyos-1x-96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a.tar.gz
vyos-1x-96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a.zip
xml: add new common "interface-name" validator
Diffstat (limited to 'src/validators/fqdn')
-rwxr-xr-xsrc/validators/fqdn2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/validators/fqdn b/src/validators/fqdn
index 347ffda42..66276c093 100755
--- a/src/validators/fqdn
+++ b/src/validators/fqdn
@@ -17,11 +17,9 @@
import re
import sys
-
# pattern copied from: https://www.regextester.com/103452
pattern = "(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)"
-
if __name__ == '__main__':
if len(sys.argv) != 2:
sys.exit(1)