This repository was archived by the owner on Nov 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Strategies
Łukasz Kostka edited this page May 29, 2015
·
4 revisions
As name suggests, it makes sure that those rules in file are present on a device. Those rules that are on device and not in configuration file will be left untouched. You may think of it as a merge operation.
Example /queue/simple
:
Rule in file:
name="test_queue" target="1.1.1.1" max-limit=10M/10M
Rule on device:
name="already_present" target="2.2.2.2" max-limit=10M/10M
Result:
name="already_present" target="2.2.2.2" max-limit=10M/10M
name="test_queue" target="1.1.1.1" max-limit=10M/10M
Replicates all rules in a given path and remove those that are not in configuration file.
Example /queue/simple
:
Rule in file:
name="test_queue" target="1.1.1.1" max-limit=10M/10M
Rules on device:
name="already_present" target="2.2.2.2" max-limit=10M/10M
Result:
name="test_queue" target="1.1.1.1" max-limit=10M/10M
Specifying an empty rules list results in removing everything in a given path.