Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
netkat fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
minmit committed Mar 4, 2016
1 parent 97b98e9 commit 9dc20cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyretic/core/netkat.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def adjust_vlan_fields(mat, acts):
m['vlan_id'] = mat.map['vlan_id']
new_act = modify(**m)
new_acts.append(new_act)
return new_acts
return set(new_acts)

def json_to_classifier(fname, qdict, multistage, vlan_offset_nbits):
from pyretic.core.classifier import Rule, Classifier
Expand All @@ -655,7 +655,7 @@ def json_to_classifier(fname, qdict, multistage, vlan_offset_nbits):
# not there's a "queries" field in the rule.
if 'queries' in rule and rule['queries']:
queries = get_queries_from_names(rule['queries'], qdict)
pyrule = Rule(m, action | queries, [None], "netkat_query")
pyrule = Rule(m, queries | action, [None], "netkat_query")
else:
pyrule = Rule(m, action, [None], "netkat")
rules.append((prio, pyrule))
Expand Down

0 comments on commit 9dc20cf

Please sign in to comment.