[Ryu-devel] [PATCH] pip-requires: Remove comments

2015-03-18 Thread YAMAMOTO Takashi
This partially reverts commit bf58a6dcf3dcf6241fc1c9e58f3e43d2aa9ea7f2. devstack (stable/juno) fails to process comments in this file. While a fix for devstack has been proposed [1], it might take some time to be merged. I guess it's best to fix it in ryu, at least for a while. [1] https://revie

Re: [Ryu-devel] Dynamic Load App

2015-03-18 Thread Shuoling Deng
Thanks very much, YAMAMOTO. I have seen the ryu/services/protocol/sample_manager.py And I think the following code snippet could help. > class RouterManager(app_manager.RyuApp): > .. > .. > app_mg

Re: [Ryu-devel] Identifying tables

2015-03-18 Thread Edvar Afonso
Ok, Thank you very much! 2015-03-18 12:27 GMT-03:00 YAMAMOTO Takashi : > hi, > > > Hi, > > > > > > > > Is there any way to identify, in the controller , which switch table > sent a > > given packet -in? > > > > For example: > > > > 1- If the controller receives the packet in X, from the table 0,

Re: [Ryu-devel] [openflow-discuss] Custom Packet creation in Ryu controller

2015-03-18 Thread YAMAMOTO Takashi
ryu-book has an example to use ryu packet library for that purpose. http://osrg.github.io/ryu-book/en/html/packet_lib.html > Hello Ruchika, > You can do it. You can use some tools like Scapy (python based tool) in the > controller and create a custom packet and pushed it down to the soft switch >

Re: [Ryu-devel] OpenFlow counters

2015-03-18 Thread YAMAMOTO Takashi
> I wanna request OpenFlow counters such as Received/Transmitted packets per > port, etc. How can I do so?? i guess you want to use OFPPortStatsRequest. ryu-book has an example: http://osrg.github.io/ryu-book/en/html/traffic_monitor.html -

Re: [Ryu-devel] Identifying tables

2015-03-18 Thread YAMAMOTO Takashi
hi, > Hi, > > > > Is there any way to identify, in the controller , which switch table sent a > given packet -in? > > For example: > > 1- If the controller receives the packet in X, from the table 0, I would > take action Y ; > > 2- If the controller receives the packet in X, from the Table

[Ryu-devel] OpenFlow counters

2015-03-18 Thread sballesterm
I wanna request OpenFlow counters such as Received/Transmitted packets per port, etc. How can I do so?? 50 Aniversario de la Cujae. Inaugurada por Fidel el 2 de diciembre de 1964 http://cujae.edu.cu -- Dive into the

Re: [Ryu-devel] [openflow-discuss] Custom Packet creation in Ryu controller

2015-03-18 Thread Quamar Niyaz
Hello Ruchika, You can do it. You can use some tools like Scapy (python based tool) in the controller and create a custom packet and pushed it down to the soft switch using packet_out event message. On Wed, Mar 18, 2015 at 10:38 AM, Ruchika Luthra < [email protected]> wrote: > Hel

[Ryu-devel] Custom Packet creation in Ryu controller

2015-03-18 Thread Ruchika Luthra
Hello, I want to create a custom packet(by specifying all the protocol header and specific payload) in ryu controller and push it to down to soft switch. Is it doable? If yes, what steps should I follow? Thank you Ruchika Luthra ---

Re: [Ryu-devel] [PATCH 1/4] ofctl_v1_3: Support masked ipv6_exthdr match field

2015-03-18 Thread FUJITA Tomonori
On Wed, 18 Mar 2015 17:17:54 +0900 Yusuke Iwase wrote: > In OpenFlow Spec 1.3.4, ipv6_exthdr is maskable match field, > but ofctl_v1_3 does not support mask. > > This patch makes ofctl_v1_3 enable to set masked ipv6_exthdr. > > Signed-off-by: IWASE Yusuke > --- > ryu/lib/ofctl_v1_3.py | 14 ++

[Ryu-devel] Identifying tables

2015-03-18 Thread Edvar Afonso
Hi, Is there any way to identify, in the controller , which switch table sent a given packet -in? For example: 1- If the controller receives the packet in X, from the table 0, I would take action Y ; 2- If the controller receives the packet in X, from the Table 1, I would take the action Z ;

[Ryu-devel] Mutiple controllers

2015-03-18 Thread sballesterm
Does Ryu supports multiple controllers in distributed mode? I'm simulating an scenario and I wanna put 2 Ryu controllers (master/slave mode), so if the master fails then the slave takes care of all the switches in the network. I tried to do so but I can only put 2 controllers, each one connected

Re: [Ryu-devel] ovs-vsctl add-br br0 problem

2015-03-18 Thread YAMAMOTO Takashi
hi, > From your above response, please let me know what you mean by the same node > because I did not get what you mean. do you run OVS and ryu in a single VM? it's what i meant by the same node. in that case, 127.0.0.1 should work. > Also in adding another eth on VMware, i want to know if th

Re: [Ryu-devel] ovs-vsctl add-br br0 problem

2015-03-18 Thread Adebayo Adedayo
Hi, From: YAMAMOTO Takashi Sent: ‎Wednesday‎, ‎March‎ ‎18‎, ‎2015 ‎2‎:‎15‎ ‎PM To: Adebayo Adedayo Cc: [email protected] hi, Second, I also want to know if the ip to be used by ryu is 127.0.0.1:6633 or the IP of the eth1 when I set it. either ways should work if you run

Re: [Ryu-devel] ovs-vsctl add-br br0 problem

2015-03-18 Thread YAMAMOTO Takashi
hi, > Hi, > > I am using VMware11 but I want to create a new eth1 so that I can use with > the bridge, because when I use eth0 I could not connect to the internet > again. Please if I want to add another eth on VMware, am I to use host-only > or NAT or bridge or custom. i don't know. on vmwa

[Ryu-devel] I couldn't find Ethernet adapter

2015-03-18 Thread Adebayo Adedayo
Hi, Please I need help in locating Ethernet adapter on my VMware. I am running Ubuntu 14.04, when I issued the sudo -i gedit /etc/network/interfaces to see the available nwtwork for editing, I can only see the lo which is the loopback. Please I need help in resolving this Thank you so much

[Ryu-devel] ovs-vsctl add-br br0 problem

2015-03-18 Thread Adebayo Adedayo
Hi, I am using VMware11 but I want to create a new eth1 so that I can use with the bridge, because when I use eth0 I could not connect to the internet again. Please if I want to add another eth on VMware, am I to use host-only or NAT or bridge or custom. Second, I also want to know if the ip

[Ryu-devel] ovs-vsctl add-br br0 problem

2015-03-18 Thread Adebayo Adedayo
Hi, I am using VMware11 but I want to create a new eth1 so that I can use with the bridge, because when I use eth0 I could not connect to the internet again. Please if I want to add another eth on VMware, am I to use host-only or NAT or bridge or custom. Second, I also want to know if the ip

Re: [Ryu-devel] QoS Problems

2015-03-18 Thread YAMAMOTO Takashi
hi, looks like a bug in ryu. can you try this? diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py index 5e57fbc..8d121f5 100644 --- a/ryu/lib/ovs/vsctl.py +++ b/ryu/lib/ovs/vsctl.py @@ -307,7 +307,7 @@ class VSCtlContext(object): @staticmethod def port_is_fake_bridge(ovsrec_port)

Re: [Ryu-devel] Dynamic Load App

2015-03-18 Thread YAMAMOTO Takashi
> Hi, everyone, > > I have a question that does the newest version of ryu controller support > the app dynamic loading? > > just like a OpenDayLight, which I could install a module and remove a > moudle though a CLI. > > IF Not, is there any roadmap to do these? there are some machineries to st

[Ryu-devel] [PATCH 4/4] ofctl_rest: Reduce pylint warnings

2015-03-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/app/ofctl_rest.py | 31 --- ryu/lib/ofctl_v1_2.py | 5 + ryu/lib/ofctl_v1_3.py | 5 + 3 files changed, 14 insertions(+), 27 deletions(-) diff --git a/ryu/app/ofctl_rest.py b/ryu/app/ofctl_rest.py index c398d94..38301ca 100

[Ryu-devel] [PATCH 1/4] ofctl_v1_3: Support masked ipv6_exthdr match field

2015-03-18 Thread Yusuke Iwase
In OpenFlow Spec 1.3.4, ipv6_exthdr is maskable match field, but ofctl_v1_3 does not support mask. This patch makes ofctl_v1_3 enable to set masked ipv6_exthdr. Signed-off-by: IWASE Yusuke --- ryu/lib/ofctl_v1_3.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[Ryu-devel] [PATCH 3/4] doc/app/ofctl_rest: Fix example of ipv6_exthdr match field

2015-03-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- doc/source/app/ofctl_rest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/app/ofctl_rest.rst b/doc/source/app/ofctl_rest.rst index 715707b..25b4795 100644 --- a/doc/source/app/ofctl_rest.rst +++ b/doc/source/app/ofctl_rest.rst @@

[Ryu-devel] [PATCH 2/4] test_ofctl: Add unit test for masked ipv6_exthdr match field

2015-03-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/tests/unit/lib/test_ofctl.py | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/ryu/tests/unit/lib/test_ofctl.py b/ryu/tests/unit/lib/test_ofctl.py index 0c09464..a1af4bf 100644 --- a/ryu/tests/unit/lib/test_ofc