summaryrefslogtreecommitdiff
path: root/interface-definitions/include/url.xml.i
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-11-09 15:06:33 -0600
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-12-01 05:42:22 +0000
commit3e7575594016c28084cc6c89b0c483f78e5a7b4a (patch)
treee679f4251c5acc84881f1e8a979ef4de4ff3e8ad /interface-definitions/include/url.xml.i
parent652e235894aeae46765ea9fbbe2208578aaa7a8c (diff)
downloadvyos-1x-3e7575594016c28084cc6c89b0c483f78e5a7b4a.tar.gz
vyos-1x-3e7575594016c28084cc6c89b0c483f78e5a7b4a.zip
T5727: Use native URL validator instead of regex-based validator
Replace regex-based URL validator with native validator from vyos-utils. Also, move `include/url.xml.i` to `include/url-http-https.xml.i` to reflect the fact that it is used only for HTTP(S) URLs. (cherry picked from commit 64322b19d6968195a6dc7c82e7e22126072377f5)
Diffstat (limited to 'interface-definitions/include/url.xml.i')
-rw-r--r--interface-definitions/include/url.xml.i15
1 files changed, 0 insertions, 15 deletions
diff --git a/interface-definitions/include/url.xml.i b/interface-definitions/include/url.xml.i
deleted file mode 100644
index caa6f67bd..000000000
--- a/interface-definitions/include/url.xml.i
+++ /dev/null
@@ -1,15 +0,0 @@
-<!-- include start from url.xml.i -->
-<leafNode name="url">
- <properties>
- <help>Remote URL</help>
- <valueHelp>
- <format>url</format>
- <description>Remote URL</description>
- </valueHelp>
- <constraint>
- <regex>^https?:\/\/?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*(\:[0-9]+)*(\/.*)?</regex>
- </constraint>
- <constraintErrorMessage>Incorrect URL format</constraintErrorMessage>
- </properties>
-</leafNode>
-<!-- include end -->