Re: [Ryu-devel] [RYU] Delete flow entry basing on priority

2016-08-30 Thread Quân Nguyễn Thanh
Hi, I am using Mininet and openvswitch. I try to delete the flow entry by RYU controller, but it doesn't work This is function to del-flow which I change *def del_flow(self, datapath, priority, in_port, out_port):ofproto = datapath.ofprotoparser =

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Túlio Pascoal
Yeah Victor, this situation is weird. I can run my Ryu this way: ryu@ryu-vm:~/ryu$ ./bin/ryu-manager ryu/app/simple_switch_13.py loading app ryu/app/simple_switch_13.py loading app ryu.controller.ofp_handler instantiating app ryu/app/simple_switch_13.py of SimpleSwitch13 instantiating app

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
Hi, Can you get the info for setuptools with "pip show setuptools" command? If can not, setuptools is not installed correctly. $ pip show setuptools --- Metadata-Version: 2.0 Name: setuptools Version: 24.0.3 Summary: Easily download, build, install, upgrade, and uninstall Python packages

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Ajay Chopra
Hello Quan, I have installed the setup tools ,still getting this error message . can you tell us from where the setup tool is being picked ? -Ajay From: Quân Nguyễn Thanh [mailto:ntqua...@gmail.com] Sent: 30 August 2016 07:53 To: Ajay Chopra Cc:

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Ajay Chopra
Hello Iwase , Getting the below message with command . I think its installed . Metadata-Version: 1.0 Name: setuptools Version: 0.6rc11 Summary: Home-page: xxx Author: xxx Author-email: xxx License: xxx Location: /usr/lib/python2.6/site-packages Requires: Classifiers: -Ajay -Original

Re: [Ryu-devel] [RYU] Delete flow entry basing on priority

2016-08-30 Thread IWAMOTO Toshihiro
At Tue, 30 Aug 2016 19:40:20 +0700, Quân Nguyễn Thanh wrote: > > [1 ] > Hi, > > It doesn't work. When I use with OFPFC_DELETE option, it remove all flow > entry. > I also try remove by ovs-ofctl command on openvswitch. > > # ovs-ofctl del-flows s3 "priority=50" -O OpenFlow13 > ovs-ofctl:

Re: [Ryu-devel] DPID in ryu

2016-08-30 Thread Iwase Yusuke
Hi, DPID is defined by the OpenFlow switch (or its setting). Ryu gets DPID from switches by using OFPSwitchFeatures messages. You can get DPID in your RyuApp as follow. https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L88 Thanks, Iwase On 2016年08月30日 22:34, Aidin Kelki

Re: [Ryu-devel] Using the REST API to change IP protocol not working.

2016-08-30 Thread Shinpei Muraoka
Hi, Code that can be set by the REST API is the following. { "actions": [ { "field": "ipv4_src", "type": "SET_FIELD", "value": "10.10.10.10" }, { "field": "ipv4_dst", "type": "SET_FIELD",

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Victor Orlikowski
Try: export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages Then, try: /usr/local/bin/ryu-manager Best, Victor -- Victor J. Orlikowski <> vjo@[cs.]duke.edu On Aug 30, 2016, at 8:42 AM, Túlio Pascoal > wrote:

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Túlio Pascoal
Hi Victor, Please, check it: ryu@ryu-vm:~/ryu$ export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages ryu@ryu-vm:~/ryu$ ryu@ryu-vm:~/ryu$ ryu@ryu-vm:~/ryu$ /usr/local/bin/ryu-manager --version Traceback (most recent call last): File "/usr/local/bin/ryu-manager", line 9, in

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Victor Orlikowski
Rather than: ./bin/ryu-manager What happens when you try: /usr/local/bin/ryu-manager ? Based on the output below, ryu is being installed into /usr/local... Best, Victor -- Victor J. Orlikowski <> vjo@[cs.]duke.edu > On Aug 30, 2016, at 8:36 AM, Túlio Pascoal wrote:

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Victor Orlikowski
The message you are receiving implies that the ryu-manager command cannot find where the needed modules it relies on are located. My best guess was the location I suggested in the PYTHONPATH, based on where ryu-manager had been installed. You will need to determine where the packages were

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Túlio Pascoal
Hi Iwase, thanks for the reply. When I ran --version, I always got 3.6. It never gets updated. Please, see below: ryu@ryu-vm:~/ryu$ sudo pip install ryu --upgrade Downloading/unpacking ryu from

Re: [Ryu-devel] [RYU] Delete flow entry basing on priority

2016-08-30 Thread Quân Nguyễn Thanh
Hi, It doesn't work. When I use with OFPFC_DELETE option, it remove all flow entry. I also try remove by ovs-ofctl command on openvswitch. # ovs-ofctl del-flows s3 "priority=50" -O OpenFlow13 ovs-ofctl: unknown keyword priority It means that openvswitch doesn't support, right? Thank you.

[Ryu-devel] DPID in ryu

2016-08-30 Thread Aidin Kelki
Hi guys, Does anyone know how dpid is calculated in ryu? Thanks Best regards AK -- ___ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
Hi, > Location: /usr/lib/python2.6/site-packages This shows pip command still on python2.6. Ryu cannot be installed correctly on python2.6. Could you install python2.7 or python3.4+? How about the output of the following command? e.g.) with python2.7 $ python2.7 -m pip setuptools If

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
Hi, If you have install Python3.5 and want to install Ryu to Python3.5, how about the following? $ python3.5 -m pip setuptools If the output is: /usr/bin/python3.5: No module named pip you need to install setuptools and pip into Python3.5 environment, first. Thanks, Iwase On 2016年08月30日

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Ajay Chopra
Adding Iwase . -Original Message- From: Ajay Chopra Sent: 30 August 2016 12:36 To: 'ryu-devel@lists.sourceforge.net' Cc: 'ntqua...@gmail.com' ; Jayavel Arumugam (IT Services), Noida Subject: RE: [Ryu-devel] Not

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
Hi, I don't know much about the packages on RHEL and CentOS, though... You can install pip manually as follow. $ wget https://bootstrap.pypa.io/get-pip.py $ sudo python3.5 get-pip.py Thanks, Iwase On 2016年08月30日 16:30, Ajay Chopra wrote: > Hi, > > Iwase -ys ,usr/local/bin/python3.5: No module

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Ajay Chopra
I have installed the Python Version 3.5 When I do the python --version it gives Python 3.5.0 . -Ajay -Original Message- From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] Sent: 30 August 2016 12:30 To: Ajay Chopra Cc: ryu-devel@lists.sourceforge.net;

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Iwase Yusuke
Hi, > Installing ryu-manager script to /usr/local/bin > Installing ryu script to /usr/local/bin > Successfully installed ryu > Cleaning up... These messages show Ryu have installed Successfully... Please confirm Ryu version as follows: $ ryu-manager --version ryu-manager 4.5 BTW,

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Oleg Sadov
For RHEL-like distros you may use Ryu package from our repository: http://downloads.naulinux.ru/pub/NauLinux/7x/x86_64/Extras/RPMS/Projects/OpenFlow/ 2016-08-30 10:43 GMT+03:00 Iwase Yusuke : > Hi, > > I don't know much about the packages on RHEL and CentOS, though... >

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Ajay Chopra
The python2.7 -m pip setuptools command shows . /usr/local/bin/python2.7: No module named pip -Ajay -Original Message- From: Ajay Chopra Sent: 30 August 2016 12:33 To: ryu-devel@lists.sourceforge.net Cc: ntqua...@gmail.com; Jayavel Arumugam (IT Services), Noida

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Ajay Chopra
Hi, Iwase -ys ,usr/local/bin/python3.5: No module named pip . But when I do -"sudo yum install git python-dev python-setuptools python-pip" , it shows -Package python-setuptools-0.6.10-3.el6.noarch already installed and latest version -No package python-pip available. -Nothing