Re: [Ryu-devel] How to send data from controller to the host

2016-08-08 Thread Yi Tseng
Hi Alan, To receive packet generated from controller, you can use scapy, it's a packet manipulation python library. For example, you can use sniff function from scapy and sniff capture packet from host interface. http://www.secdev.org/projects/scapy/doc/usage.html#sniffing 2016-08-08 21:09 GMT

[Ryu-devel] Ryu application

2016-08-08 Thread Francesco Murador
Hi i need some help with ryu, i need to realize a ryu application that raise a message from openflow switches on mininet, but i need to do a custom openflow message, because all i have to do, it is to check the traffic of my network and than if in an openflow switch there’s a lot of traffic it h

Re: [Ryu-devel] How to send data from controller to the host

2016-08-08 Thread Alan Wang
HI, Thanks for tour reply!! However I want to use these data sent from the controller at host. How to receive packets from the controller and transfer it to txt file at the host? Thanks, Alan 2016-08-08 21:08 GMT+08:00 Alan Wang : > HI, > > Thanks for tour reply!! > > However I want to use t

[Ryu-devel] [PATCH 1/4] ofctl_nicira_ext: Resolve not initialized values

2016-08-08 Thread IWASE Yusuke
Currently, 'dst_start_end' and 'src_start_end' in NXActionLearn are not initialized before assignment to convert into string representation. This patch fixes this problem. Signed-off-by: IWASE Yusuke --- ryu/lib/ofctl_nicira_ext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[Ryu-devel] [PATCH 4/4] lib: Reduce Pylint warnings

2016-08-08 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/bfdlib.py | 17 +++--- ryu/lib/dpid.py| 3 +-- ryu/lib/hub.py | 8 +++ ryu/lib/igmplib.py | 2 +- ryu/lib/lacplib.py | 5 ++-- ryu/lib/ofctl_utils.py | 2 +- ryu/lib/ofctl_v1_0.py | 27 ++--- ry

[Ryu-devel] [PATCH 0/4] ryu.lib: Reduce Pylint warnings

2016-08-08 Thread IWASE Yusuke
The following patches reduce Pylint warnings of libraries of Ryu (ryu.lib.*). IWASE Yusuke (4): ofctl_nicira_ext: Resolve not initialized values ofctl_nicira_ext: Fix not enough arguments for format string stringify: Fix to utilise six.moves.builtins lib: Reduce Pylint warnings ryu/lib/b

[Ryu-devel] [PATCH 3/4] stringify: Fix to utilise six.moves.builtins

2016-08-08 Thread IWASE Yusuke
To improve Pylint results, this patch fixes to utilise six.moves.builtins instead of using __builtin__ on Python2 or builtins on Python3. Signed-off-by: IWASE Yusuke --- ryu/lib/stringify.py | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ryu/lib/stringify.py b

[Ryu-devel] [PATCH 2/4] ofctl_nicira_ext: Fix not enough arguments for format string

2016-08-08 Thread IWASE Yusuke
Currently, the assignment for 'table_id' is missing in the arguments of str representation. This patch fixes this problem. Signed-off-by: IWASE Yusuke --- ryu/lib/ofctl_nicira_ext.py | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ryu/lib/ofctl_nicira_ext.py