Friday, September 16, 2016

Include files

FAUCET allows you to split your config into separate files, so that automated generation/replacement of files is easier (E.g., if you want to change the configuration of a single ACL, you can replace just that file rather than having to merge your change into one file).

For an example, see https://github.com/REANNZ/faucet/blob/master/tests/config/testconfigv2.yaml. Specifically:

# test include
include:
- testconfigv2-dps.yaml
# test include-optional
include-optional:
- testconfigv2-acls.yaml

The first file will be read and included (and it must be present). 

The second file will be read and included, if present.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.