Skip to content
Snippets Groups Projects
Commit 0cdcbf5b authored by Jason Parraga's avatar Jason Parraga
Browse files

Small logical error, allowed me to push infinite rules with the same data layer

parent 87ee33a1
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ public class FirewallRule implements Comparable<FirewallRule> {
public boolean isSameAs(FirewallRule r) {
if (this.action != r.action
|| this.wildcard_dl_type != r.wildcard_dl_type
|| (this.wildcard_dl_type == false && this.dl_type == r.dl_type)
|| (this.wildcard_dl_type == false && this.dl_type != r.dl_type)
|| this.wildcard_tp_src != r.wildcard_tp_src
|| (this.wildcard_tp_src == false && this.tp_src != r.tp_src)
|| this.wildcard_tp_dst != r.wildcard_tp_dst
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment