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

Commit

Permalink
cache netkat classifiers for derived policies as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ngsrinivas committed Mar 10, 2016
1 parent 5f90b49 commit 640953b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyretic/core/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,8 @@ def compile(self):
return self._classifier

def netkat_compile(self, *args, **kwargs):
return self.policy.netkat_compile(*args, **kwargs)
(self._classifier, comp_t) = self.policy.netkat_compile(*args, **kwargs)
return (self._classifier, comp_t)

def generate_classifier(self):
return self.policy.compile()
Expand Down

0 comments on commit 640953b

Please sign in to comment.