[Ryu-devel] Host Discovery?

2016-10-07 Thread Rakesh Kumar
So, I am using RYU 4.0 with following apps: ryu-manager --observe-links ryu.app.ofctl_rest ryu.app.rest_topology I am using mininet. The topology has two switches connected via a single link between them. Each switch has two hosts connected with it. From the REST API, I can access all the switch-

Re: [Ryu-devel] [PATCH] ryu/lib/ofctl_v1_3: port name decoding fix

2016-10-07 Thread MichaƂ Rzepka
Hello, Certainly, the issue is caused by the switch and would not be found on a fully-compliant device. This patch is meant to make Ryu handle such cases gracefully and prevent ofctl_rest app from crashing. Regards, W dniu 07.10.2016 o 03:30, Iwase Yusuke pisze: > Hi Michal, > > Thank you for

Re: [Ryu-devel] [RFC][PATCH] Raise OFPTruncatedMessage exception on truncated messages

2016-10-07 Thread IWAMOTO Toshihiro
At Mon, 3 Oct 2016 18:32:34 +0900, Takashi YAMAMOTO wrote: > > On Thu, Sep 29, 2016 at 4:44 PM, IWAMOTO Toshihiro > wrote: > > > OFPT_ERROR_MSG can return truncated messages. Some users want to > > see them in human-friendly format [1]. Catch exceptions caused > > by such truncated messages and

[Ryu-devel] [PATCH 0/3] parsing truncated ofp messages

2016-10-07 Thread IWAMOTO Toshihiro
This set of patches is for parsing truncated ofp messages and test support for it. Support for truncated message is far from complete, but it can be made better if needed. IWAMOTO Toshihiro (3): ofproto_v1_3_parser: Raise OFPTruncatedMessage exception on truncated messages test_parser: En

[Ryu-devel] [PATCH 3/3] test_parser: Add an truncate packet test

2016-10-07 Thread IWAMOTO Toshihiro
Signed-off-by: IWAMOTO Toshihiro --- .../of13/libofproto-OFP13-flow_mod.truncated64 | 0 ...bofproto-OFP13-flow_mod.packet.truncated64.json | 33 ++ 2 files changed, 33 insertions(+) create mode 100644 ryu/tests/packet_data/of13/libofproto-OFP13-flow_mod.truncated64 cr

[Ryu-devel] [PATCH 2/3] test_parser: Enable tests for truncated packets

2016-10-07 Thread IWAMOTO Toshihiro
When there are files named "*.truncated%d" in the packet_data directories, they are treated as special instructions; test method are generated by truncating wire_msg from corresponding "*.packet" files. Signed-off-by: IWAMOTO Toshihiro --- ryu/tests/unit/ofproto/test_parser.py | 35 +

[Ryu-devel] [PATCH 1/3] ofproto_v1_3_parser: Raise OFPTruncatedMessage exception on truncated messages

2016-10-07 Thread IWAMOTO Toshihiro
OFPT_ERROR_MSG can return truncated messages. Some users want to see them in human-friendly format [1]. Catch exceptions caused by such truncated messages and reraise as OFPTruncatedMessage with incomplete ofpmsg in the exception class. [1] https://bugs.launchpad.net/dragonflow/+bug/1624826 Sign