summaryrefslogtreecommitdiff
path: root/interface-definitions/include/url.xml.i
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-10-13 11:17:22 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-10-13 11:17:22 +0000
commit72c7547efce6051edc9a6c14083cf56a5368836a (patch)
treee6497ff198951c0ba922f65e52228cb7b148fa5e /interface-definitions/include/url.xml.i
parentf54f1387c7e50e108b3bfaeab2331b845cca25fc (diff)
downloadvyos-1x-72c7547efce6051edc9a6c14083cf56a5368836a.tar.gz
vyos-1x-72c7547efce6051edc9a6c14083cf56a5368836a.zip
monitoring: T4312: Ability to set IP address in the URL
Use common "url.xml" which allow URL as domain name or IP entrie
Diffstat (limited to 'interface-definitions/include/url.xml.i')
-rw-r--r--interface-definitions/include/url.xml.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/include/url.xml.i b/interface-definitions/include/url.xml.i
new file mode 100644
index 000000000..caa6f67bd
--- /dev/null
+++ b/interface-definitions/include/url.xml.i
@@ -0,0 +1,15 @@
+<!-- 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 -->