commit | 7adebd297a3d4207f4d5d74a72fa28d509ae0008 | [log] [tgz] |
---|---|---|
author | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Thu Aug 01 22:14:14 2013 -0700 |
committer | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Thu Aug 01 22:14:14 2013 -0700 |
tree | f6c4c790b08c989bec5974425f5f966472a6c5dd | |
parent | bc679f711c73aac80020d6486964e014193d44a9 [diff] |
frontend: raise Exception if unknown how to create member
diff --git a/loxi_front_end/frontend.py b/loxi_front_end/frontend.py index c12eaae..5d35260 100644 --- a/loxi_front_end/frontend.py +++ b/loxi_front_end/frontend.py
@@ -46,6 +46,8 @@ return OFFieldLengthMember(name=m_ast[2], oftype=m_ast[1], field_name='actions') else: return OFDataMember(name=m_ast[2], oftype=m_ast[1]) + else: + raise Exception("Dont know how to create member: %s" % m_ast[0]) def create_ofinput(ast): """