You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is model code for evaluating a firewall rules list with some priority numbers. The smaller the number the bigger priority rule has.
retr_rule with salience 3 if i understood correctly from the docs should be executed first and filter out all of the {fact, allow|block, integer()} except of 2 top ones with number 1 and 2.
connection_blocked with smaller salience of 1 should be executed after retr_rule stopped firing.
But as the result i get the following:
1> rules2:execute().
ok
2> seresye:get_kb(t).
[{fact_blocked,2},{fact,block,2},{fact,allow,1}]
Which contradicts to the intended logic. Am I missing something or that is a bug?
The text was updated successfully, but these errors were encountered:
Hello, I have a question regarding the usage of Salience of the rules.
It is model code for evaluating a firewall rules list with some priority numbers. The smaller the number the bigger priority rule has.
retr_rule
with salience 3 if i understood correctly from the docs should be executed first and filter out all of the{fact, allow|block, integer()}
except of 2 top ones with number 1 and 2.connection_blocked
with smaller salience of 1 should be executed afterretr_rule
stopped firing.But as the result i get the following:
Which contradicts to the intended logic. Am I missing something or that is a bug?
The text was updated successfully, but these errors were encountered: