summaryrefslogtreecommitdiff
path: root/interface-definitions/salt-minion.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-26 10:27:57 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-26 10:27:57 +0200
commitad39362fb0e5c31741ae7f0f2d8bd44428c381ef (patch)
treee2d74fbe10021ebab2a14138c132d7abd5b43dba /interface-definitions/salt-minion.xml.in
parent817ffb3f09b3cac01267fb8aa53f0fe77d6356fc (diff)
downloadvyos-1x-ad39362fb0e5c31741ae7f0f2d8bd44428c381ef.tar.gz
vyos-1x-ad39362fb0e5c31741ae7f0f2d8bd44428c381ef.zip
salt: T2382: XML: add proper valueHelp and validators for master
Diffstat (limited to 'interface-definitions/salt-minion.xml.in')
-rw-r--r--interface-definitions/salt-minion.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/interface-definitions/salt-minion.xml.in b/interface-definitions/salt-minion.xml.in
index 9aa60249a..02501c5e8 100644
--- a/interface-definitions/salt-minion.xml.in
+++ b/interface-definitions/salt-minion.xml.in
@@ -55,6 +55,19 @@
<leafNode name="master">
<properties>
<help>The hostname or IP address of the master.</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>Remote syslog server IPv4 address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>hostname</format>
+ <description>Remote syslog server FQDN</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ip-address"/>
+ <validator name="fqdn"/>
+ </constraint>
+ <constraintErrorMessage>Invalid FQDN or IP address</constraintErrorMessage>
<multi/>
</properties>
</leafNode>