diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-10 08:04:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 08:04:01 +0100 |
commit | 1fcb8637f864e13c5208bed22f3a065b5d78f596 (patch) | |
tree | 78a6f0a5eb05b838f3111e1e2ae945254673933f /interface-definitions/include/url-http-https.xml.i | |
parent | 39604f33a474351c0a2dc5fa683c16a150285612 (diff) | |
parent | 64322b19d6968195a6dc7c82e7e22126072377f5 (diff) | |
download | vyos-1x-1fcb8637f864e13c5208bed22f3a065b5d78f596.tar.gz vyos-1x-1fcb8637f864e13c5208bed22f3a065b5d78f596.zip |
Merge pull request #2467 from indrajitr/validation-fix
T5727: Use native URL validator instead of regex-based validator
Diffstat (limited to 'interface-definitions/include/url-http-https.xml.i')
-rw-r--r-- | interface-definitions/include/url-http-https.xml.i | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/include/url-http-https.xml.i b/interface-definitions/include/url-http-https.xml.i new file mode 100644 index 000000000..f763c2bb2 --- /dev/null +++ b/interface-definitions/include/url-http-https.xml.i @@ -0,0 +1,15 @@ +<!-- include start from url-http-https.xml.i --> +<leafNode name="url"> + <properties> + <help>Remote URL</help> + <valueHelp> + <format>url</format> + <description>Remote HTTP(S) URL</description> + </valueHelp> + <constraint> + <validator name="url" argument="--scheme http --scheme https"/> + </constraint> + <constraintErrorMessage>Invalid HTTP(S) URL format</constraintErrorMessage> + </properties> +</leafNode> +<!-- include end --> |