Suggested by Sergio Andrés Rivera Polanco, the following patches enable ofctl_rest.py to use the reserved OpenFlow numbers (e.g. port numbering such as "OFPP_CONTROLLER") in the request and reply parameters. For the example of usage, please refer to the following patches.
IWASE Yusuke (3): lib/ofctl: Add utility library for ofctl_v1_*.py test_ofctl_utils: Add unit tests for ofctl_utils.py test_ofctl: Update json representations ryu/lib/ofctl_utils.py | 92 +++++++++++++ ryu/lib/ofctl_v1_0.py | 50 +++++--- ryu/lib/ofctl_v1_2.py | 99 +++++++------- ryu/lib/ofctl_v1_3.py | 112 ++++++++-------- .../of12/3-12-ofp_flow_stats_reply.packet.json | 4 +- .../of12/3-28-ofp_table_stats_reply.packet.json | 2 +- .../3-36-ofp_queue_get_config_reply.packet.json | 2 +- .../of13/4-12-ofp_flow_stats_reply.packet.json | 4 +- .../4-36-ofp_queue_get_config_reply.packet.json | 2 +- ryu/tests/unit/lib/test_ofctl_utils.py | 142 +++++++++++++++++++++ 10 files changed, 388 insertions(+), 121 deletions(-) create mode 100644 ryu/lib/ofctl_utils.py create mode 100644 ryu/tests/unit/lib/test_ofctl_utils.py -- 1.9.1 ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
