diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-07 11:35:26 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-07 11:58:21 +0200 |
commit | 097a088725eb632bec3e09a2e563fc96139d86ba (patch) | |
tree | bd1cbc2b780bc6c55dfe2552c2b162e2bcadf50a /schema | |
parent | 89da1559e145d8e86750a634e5268df60e63b4b3 (diff) | |
download | vyos-1x-097a088725eb632bec3e09a2e563fc96139d86ba.tar.gz vyos-1x-097a088725eb632bec3e09a2e563fc96139d86ba.zip |
Validator: add file-exists as replacement to Vyatta check_file_in_config_dir
Verify if a file exists or not on the system. Can be called by:
<constraint>
<validator name="file-exists" argument="--directory /config/auth"/>
</constraint>
The --directory option is used to ensure a given file path lies under this
(mandatory) directory. A directory can be mandatory when the optional argument
-e, --error is used. This will return '1' instead of '0'.
Diffstat (limited to 'schema')
0 files changed, 0 insertions, 0 deletions