commit | a2de219206518d3deee6688f8c17414fa5865da8 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Fri Nov 29 17:58:32 2013 -0800 |
committer | Rich Lane <rlane@bigswitch.com> | Fri Nov 29 17:58:32 2013 -0800 |
tree | 0b10986d6e2d410746da2a364248266050023257 | |
parent | 7bc23778e680a0be5d762d5ef8a71f50a164f716 [diff] [blame] |
pyloxi: use OFClass directly It now includes everything we need except pyname.
diff --git a/py_gen/templates/oxm.py b/py_gen/templates/oxm.py index 3d888a7..176a74c 100644 --- a/py_gen/templates/oxm.py +++ b/py_gen/templates/oxm.py
@@ -58,7 +58,7 @@ :: #endfor parsers = { -:: key = lambda x: x.type_members[0].value +:: key = lambda x: x.member_by_name('type_len').value :: for ofclass in sorted(ofclasses, key=key): ${key(ofclass)} : ${ofclass.pyname}.unpack, :: #endfor