summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-12-14 09:07:40 -0600
committerGitHub <noreply@github.com>2022-12-14 09:07:40 -0600
commit92aa324fef80bdb0bcb3e93feba2f4e2aa787d38 (patch)
tree7dc4a5d1ff463c9502fb5c4dfd0f298f3f29d35c /interface-definitions/include
parent6095dfec48cefbdafe77d49325a122acfad1c372 (diff)
parent046bb9ccd56ac5e97c638bb4a9ca856d3d36026a (diff)
downloadvyos-1x-92aa324fef80bdb0bcb3e93feba2f4e2aa787d38.tar.gz
vyos-1x-92aa324fef80bdb0bcb3e93feba2f4e2aa787d38.zip
Merge pull request #1706 from jestabro/validator-file-exists
validators: T4798: replace python file-exists validator with file-path
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/certificate-ca.xml.i2
-rw-r--r--interface-definitions/include/certificate-key.xml.i2
-rw-r--r--interface-definitions/include/certificate.xml.i2
3 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/include/certificate-ca.xml.i b/interface-definitions/include/certificate-ca.xml.i
index b97378658..3cde2a48d 100644
--- a/interface-definitions/include/certificate-ca.xml.i
+++ b/interface-definitions/include/certificate-ca.xml.i
@@ -7,7 +7,7 @@
<description>File in /config/auth directory</description>
</valueHelp>
<constraint>
- <validator name="file-exists" argument="--directory /config/auth"/>
+ <validator name="file-path" argument="--strict --parent-dir /config/auth"/>
</constraint>
</properties>
</leafNode>
diff --git a/interface-definitions/include/certificate-key.xml.i b/interface-definitions/include/certificate-key.xml.i
index 1db9dd069..2c4d81fbb 100644
--- a/interface-definitions/include/certificate-key.xml.i
+++ b/interface-definitions/include/certificate-key.xml.i
@@ -7,7 +7,7 @@
<description>File in /config/auth directory</description>
</valueHelp>
<constraint>
- <validator name="file-exists" argument="--directory /config/auth"/>
+ <validator name="file-path" argument="--strict --parent-dir /config/auth"/>
</constraint>
</properties>
</leafNode>
diff --git a/interface-definitions/include/certificate.xml.i b/interface-definitions/include/certificate.xml.i
index fb5be45cc..6a5b2936c 100644
--- a/interface-definitions/include/certificate.xml.i
+++ b/interface-definitions/include/certificate.xml.i
@@ -7,7 +7,7 @@
<description>File in /config/auth directory</description>
</valueHelp>
<constraint>
- <validator name="file-exists" argument="--directory /config/auth"/>
+ <validator name="file-path" argument="--strict --parent-dir /config/auth"/>
</constraint>
</properties>
</leafNode>