summaryrefslogtreecommitdiff
path: root/rule-compiler
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-07-11 16:55:13 -0700
committerJoseph Henry <josephjah@gmail.com>2018-07-11 16:55:13 -0700
commit65b0030342704cdbace07693a22d3e8048f7f244 (patch)
tree6f4b2e72fc2d5a27c3e2ba286cf2c3a782b68aa2 /rule-compiler
parentf302fac423db6cc0e5e8c1758a74a7d7b7d8bf04 (diff)
downloadinfinitytier-65b0030342704cdbace07693a22d3e8048f7f244.tar.gz
infinitytier-65b0030342704cdbace07693a22d3e8048f7f244.zip
Added basic QoS rule handling
Diffstat (limited to 'rule-compiler')
-rw-r--r--rule-compiler/rule-compiler.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rule-compiler/rule-compiler.js b/rule-compiler/rule-compiler.js
index bd84824e..38134b74 100644
--- a/rule-compiler/rule-compiler.js
+++ b/rule-compiler/rule-compiler.js
@@ -65,7 +65,8 @@ const OPEN_BLOCK_KEYWORDS = {
'tee': true,
'watch': true,
'redirect': true,
- 'break': true
+ 'break': true,
+ 'priority': true
};
// Reserved words that can't be used as tag, capability, or rule set names
@@ -81,6 +82,7 @@ const RESERVED_WORDS = {
'watch': true,
'redirect': true,
'break': true,
+ 'priority': true,
'ztsrc': true,
'ztdest': true,
@@ -131,6 +133,7 @@ const KEYWORD_TO_API_MAP = {
'watch': 'ACTION_WATCH',
'redirect': 'ACTION_REDIRECT',
'break': 'ACTION_BREAK',
+ 'priority': 'ACTION_PRIORITY',
'ztsrc': 'MATCH_SOURCE_ZEROTIER_ADDRESS',
'ztdest': 'MATCH_DEST_ZEROTIER_ADDRESS',