commit | 7c49d4ef998693bfcf00dcc7b849becea6cf5757 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Wed Oct 02 15:57:46 2013 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Wed Oct 02 15:57:46 2013 -0700 |
tree | 86a874fc4ce9598b9552c8cfd72002131238f013 | |
parent | 4a86826a7aa1739b4542f5cf2b74ad2d72aa941d [diff] |
ir: add enum_by_name to OFProtocol
diff --git a/loxi_ir.py b/loxi_ir.py index 4176303..a70f041 100644 --- a/loxi_ir.py +++ b/loxi_ir.py
@@ -66,6 +66,9 @@ def class_by_name(self, name): return find(lambda ofclass: ofclass.name == name, self.classes) + def enum_by_name(self, name): + return find(lambda enum: enum.name == name, self.enums) + """ An OpenFlow class