Re: [Ryu-devel] [PATCH] tests: Separate test files from Ryu module

2017-07-09 Thread fumihiko kakuma
Hi Iwase-San, Thank you for explanations. We discussed with fujita-san about this topic last week and we concluded that it will be better to move ryu/tests/integrated/common to ryu/lib. Can you add my previous patch to your v2 patch? After the new version with this patch was released, I am goin

[Ryu-devel] [PATCH 1/1] Move ryu/tests/integrated/common to ryu/lib/docker

2017-07-09 Thread fumihiko kakuma
This patch requires the v2 patch of Iwase-San. Signed-off-by: Fumihiko Kakuma --- .travis.yml| 2 +- ryu/lib/docker/__init__.py | 0 ryu/lib/docker/docker_base.py | 801 + ryu/lib/docker/

Re: [Ryu-devel] Flow statistics on each packet

2017-07-09 Thread Fujimoto Satoshi
Hi, Suhail Do you want to get the total bytes with the Packet In header, or without the header? If you want to get with the header, msg_len returns the bytes including its header. You can get this filed and add it to the total count: @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHE

Re: [Ryu-devel] Ryu Integration with OpenStack (Ocata)

2017-07-09 Thread Iwase Yusuke
Hi Gautham, As described at the following, Ryu should be automatically selected by Open vSwitch agent with "of_interface = native" mode http://ryu.readthedocs.io/en/latest/using_with_openstack.html For the installation of Open vSwitch agent on OpenStack Ocata, please refer to the document on

Re: [Ryu-devel] OFPPacketOut

2017-07-09 Thread Edison Albuquerque
Thanks a lot for your ligthting fast answer. I am not confused anymore. You are the man. Best wishes Edison. Em 9 de jul de 2017 21:26, "Iwase Yusuke" escreveu: > Hi Edison, > > > On 2017年07月09日 09:31, Edison Albuquerque wrote: > >> Hi. >> I wrote a simple code to send a packet through the switc

[Ryu-devel] [PATCH] bgp_sample_conf: absolute_import to suppress warnings

2017-07-09 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/bgp_sample_conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/services/protocols/bgp/bgp_sample_conf.py b/ryu/services/protocols/bgp/bgp_sample_conf.py index f18f0f7..efdee69 100644 --- a/ryu/services/protocols/bgp/bgp_sa

Re: [Ryu-devel] how can i distinguish controllers for packet in to them?

2017-07-09 Thread Fujimoto Satoshi
Hi, Mehran Unfortunately, you cannot use the port number which is connected to the controller in OFPActionOutput(). However, if you can set roles(Master/Slave) to the controllers, you can use OFPSetAsync to control whether the switch sends Packet-In to Master or Slave controller: http://ryu.

Re: [Ryu-devel] Testing BGP in ryu

2017-07-09 Thread Iwase Yusuke
Hi, Sorry for the delay. I guess these message are just warning on Python 2. On Python 2, the "implicit relative import" is allowed, so interpreter try to find modules from current path and will fail to find "os" module from "ryu.services .protocols.bgp.bgpspeaker.application". OTOH, on Python

Re: [Ryu-devel] OFPPacketOut

2017-07-09 Thread Iwase Yusuke
Hi Edison, On 2017年07月09日 09:31, Edison Albuquerque wrote: Hi. I wrote a simple code to send a packet through the switch. I caught the switch datapath from FeaturesReply message and from datapath I found the ofproto and parser, which is openflow 1.3; But when I print the message the controller

Re: [Ryu-devel] [PATCH] tests: Separate test files from Ryu module

2017-07-09 Thread Iwase Yusuke
Hi Kakuma-San, Sorry for the delay. On 2017年07月06日 21:58, fumihiko kakuma wrote: Hi Iwase-San, I have one question for your patch. Why do you not move ryu/tests/switch as well? I guess that is because it is rferenced in the ryu-book. Or do you have an another reason? As you guessed, just be

[Ryu-devel] how can i distinguish controllers for packet in to them?

2017-07-09 Thread mehran shetabi
Hi, In Mininet, I created a topology with one switch, two host, and two inband RYU controller. In OFPActionOutput() function, instead of using ofproto.OFPP_CONTROLLER for output port may I use port number (e.g. 3) that connected to the controller? If the answer is no, is there any way to disting