diff options
author | Yusuke Iwase <iwase.yusuke0@gmail.com> | 2015-09-17 16:30:22 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-18 08:32:09 +0900 |
commit | be5b00996db0865b5a3e4c053dc4a08f108aa674 (patch) | |
tree | 83a1c556d385a2268af30ecc031b157e1a3e09d0 /tools | |
parent | 1d1777c891014a763fd19a0c83b433f7eff9b9ed (diff) |
OXM/OXS: Enable to sort Experimenter oxm_type/oxs_type in Python3
The representation of oxm_type/oxs_type is an int type value if
OXM/OXS in OpenFlowBasic class, but a tuple type value if in
Experimenter class.
So, Python3 may fail to sort a list of OXM/OXS fields by using
oxm_type/oxs_type.
This patch adds 'key' parameter into sort() method and enables to
sort a list which contains both OpenFlowBasic and Experimenter.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions