Re: [Ryu-devel] Ryu controller for OpenStack

2015-10-07 Thread fumihiko kakuma
Hi Alioune, On Wed, 7 Oct 2015 22:09:31 +0200 Alioune wrote: > Hi Dear Sir, > I have a few questions about Ruy controller please. > > Is there possible to use one Ruy controller to manage open vswitch running > on all compute nodes instead of using ofagent for each one ? > Yes and ryu plugin

[Ryu-devel] IP Addresses Based Blocking

2015-10-07 Thread Andy Echenique
Hello, My name is Andrew and I have been working with Ryu for a bit and would appreciate help with a small problem. I am trying to get my controller to only allow communication from specific IP addresses. For example, if a packet is sent from IP address 111.111.111, I want my controller to Flood

Re: [Ryu-devel] use Ryu as MecanismDriver for OpenStack

2015-10-07 Thread Alioune
Dear guys, Someone has suggestion about my question please? Best Regards On 7 October 2015 at 14:08, Alioune wrote: > Hi Dear All, > > Please l would like to know whether there is possible to use Ryu > controller as MechanismDriver in OpenStack in order to redirect neutron API > call to Ryu . >

Re: [Ryu-devel] Ryu application for DHCPServer

2015-10-07 Thread alyosha
Sorry, I dropped mailing list. Hi, Mr. Yi Tseng. Thank you for comments. >>That's strange, because udp parser will check if it's a dhcp packet and parser it.. I created simple_dhcp_server.py with old udp parser, which did not support dhcp packet. I will try and check with new udp parse

Re: [Ryu-devel] Ryu application for DHCPServer

2015-10-07 Thread alyosha
Thank you for comments, Mr Shuoling Deng and Mr Yi Tseng. >> it looks like parse every PAKCET-IN ? would this cause heavy load to Controller. As you pointed out, this application parses all PACKET-IN to handle DHCP Packet. Bit this is a "simple" dhcp server. So this application shoud be used i

Re: [Ryu-devel] Ryu application for DHCPServer

2015-10-07 Thread Yi Tseng
Please don't drop the mailing list Hi Shuoling Deng: It is necessary to parse every packet-in message if you want controller be a simple dhcp server. Hi alyosha: That's strange, because udp parser will check if it's a dhcp packet and parser it.. maybe it is a bug for parsing udp packet. http

[Ryu-devel] use Ryu as MecanismDriver for OpenStack

2015-10-07 Thread Alioune
Hi Dear All, Please l would like to know whether there is possible to use Ryu controller as MechanismDriver in OpenStack in order to redirect neutron API call to Ryu . I have already use Ryu to manage Open vSwitch or mininet networks but with OpenStack, there are more configurations done by the a

Re: [Ryu-devel] [PATCH] Python 3: Explicit bytes->str conversion for port name - revised

2015-10-07 Thread Fadi Moukayed
Hello, Sorry, the previous patch unintentionally broke python2.x - this one replaces the str()-coercion with something that should work on both 2.x and 3.x. Greetings, -Fadi Moukayed 2015-10-07 13:09 GMT+02:00 Fadi Moukayed : > Signed-off-by: Fadi Moukayed > --- > ryu/topology/switches.py | 2

[Ryu-devel] [PATCH] Python 3: Explicit bytes->str conversion for port name - revised

2015-10-07 Thread Fadi Moukayed
Signed-off-by: Fadi Moukayed --- ryu/topology/switches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index 5fe5d26..20d04fd 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -87,7 +87,7 @@ class Por

Re: [Ryu-devel] [PATCH] Python 3: Explicit bytes->str conversion for port name

2015-10-07 Thread Fadi Moukayed
This patch (revised, please ignore the previous one: I forgot to specify the UTF8 encoding) adds the missing bytes->str conversion for the 'name' attribute, thus fixing the "'str' does not support the buffer interface TypeError" under Python 3. Also fixes the '/switches' method in ryu.app.rest_top

[Ryu-devel] [PATCH] Python 3: Explicit bytes->str conversion for port name

2015-10-07 Thread Fadi Moukayed
Signed-off-by: Fadi Moukayed --- ryu/topology/switches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index 5fe5d26..254c847 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -87,7 +87,7 @@ class Por

[Ryu-devel] [PATCH] Python 3: Explicit bytes->str conversion for port name

2015-10-07 Thread Fadi Moukayed
Signed-off-by: Fadi Moukayed --- ryu/topology/switches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index 5fe5d26..4223d21 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -87,7 +87,7 @@ class Por

Re: [Ryu-devel] Ryu application for DHCPServer

2015-10-07 Thread Yi Tseng
Hello Maybe you can try dhcp_packet = pkt.get_protocol(dhcp.dhcp) if not dhcp_packet: # not dhcp packet return # ... handling dhcp packet 2015-10-07 15:40 GMT+08:00 Shuoling Deng : > it looks like parse every PAKCET-IN ? > > would this cause heavy load to Controller. > > > On Wed,

Re: [Ryu-devel] Ryu application for DHCPServer

2015-10-07 Thread Shuoling Deng
it looks like parse every PAKCET-IN ? would this cause heavy load to Controller. On Wed, Oct 7, 2015 at 12:52 AM, alyosha wrote: > Nice to e-meet you. My name is Okano Yuu. > I created a new ryu application, simple_dhcp_server for DHCPServer. > > I tested this application with 2 VMs, and this

Re: [Ryu-devel] Question regarding the switch test tool

2015-10-07 Thread Sascha Bleidner
I see, I need to change all the test patterns beforehand… "If you want to change the port number by the above options, please be aware that there is a need to change the value of the port number of the test pattern file to the test tool before starting.” Is there a set of test pattern availabl

Re: [Ryu-devel] Question regarding the switch test tool

2015-10-07 Thread Sascha Bleidner
Hi, thanks, I got it. Strangely the options I set with e.g. --test-switch-target_send_port_2 are not used by the test… I checked in the tester.py class where the ports are set. The ports are set as I specified with the options for ryu-manager, but the test tool keeps installing the rules with