Currently, ofctl_rest.py raise error if the following example
command described at Ryu documentaion received.
  
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#example-of-set-field-action

The cause of this problem is that lib/ofctl_v1_* fails to
convert the hexadecimal {"dl_type": "0x8000"} into the integer
value, because the current implementation does not consider
the hexadecimal.

The following patches fix this problem.

IWASE Yusuke (2):
  ofctl_v1_*: Use str_to_int instead of builtin int
  ofctl_v1_*: Use utility functions of ofctl_utils

 ryu/lib/ofctl_utils.py |  31 ++++---
 ryu/lib/ofctl_v1_0.py  |  53 +++++------
 ryu/lib/ofctl_v1_2.py  | 239 +++++++++++++++----------------------------------
 ryu/lib/ofctl_v1_3.py  | 125 ++++++++++++++------------
 ryu/lib/ofctl_v1_4.py  | 109 +++++++++++-----------
 ryu/lib/ofctl_v1_5.py  | 122 +++++++++++++------------
 6 files changed, 305 insertions(+), 374 deletions(-)

-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to