summaryrefslogtreecommitdiff
path: root/src/conf_mode/firewall_options.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-07 11:35:26 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-07 11:58:21 +0200
commit097a088725eb632bec3e09a2e563fc96139d86ba (patch)
treebd1cbc2b780bc6c55dfe2552c2b162e2bcadf50a /src/conf_mode/firewall_options.py
parent89da1559e145d8e86750a634e5268df60e63b4b3 (diff)
downloadvyos-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 'src/conf_mode/firewall_options.py')
0 files changed, 0 insertions, 0 deletions