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 = datapath.ofproto_parsermatch  =
parser.OFPMatch(in_port=in_port)print ">DEBUG: Del flow <",
datapath.id  ,"> in_port, out_put, priority: ",
in_port, out_port, prioritymod = parser.OFPFlowMod(
datapath=datapath,match=match,
out_port=out_port,command=ofproto.OFPFC_DELETE)
datapath.send_msg(mod)*

I debug on s1 switch, and I saw it receive the message del-flow. But it
doesn't remove the flow entry
# ovs-ofctl snoop s1
OFPT_FLOW_MOD (OF1.3) (xid=0xf61fb58b): DEL in_port=1 out_port:2
actions=drop

I dump the flow entry, it still exit the flow entry.
# ovs-ofctl dump-flows -O OpenFlow13 s1






*OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0, duration=26.302s, table=0,
n_packets=46, n_bytes=2760,
priority=65535,dl_dst=01:80:c2:00:00:0e,dl_type=0x88cc
actions=CONTROLLER:65535 cookie=0x0, duration=16.068s, table=0,
n_packets=17, n_bytes=1610, priority=50,in_port=1,dl_dst=00:00:00:00:00:02
actions=output:2 cookie=0x0, duration=16.068s, table=0, n_packets=8,
n_bytes=672, priority=50,in_port=2,dl_dst=00:00:00:00:00:01
actions=output:1 cookie=0x0, duration=16.066s, table=0, n_packets=0,
n_bytes=0, priority=10,in_port=1,dl_dst=00:00:00:00:00:02
actions=output:3 cookie=0x0, duration=16.066s, table=0, n_packets=0,
n_bytes=0, priority=10,in_port=3,dl_dst=00:00:00:00:00:01
actions=output:1 cookie=0x0, duration=26.322s, table=0, n_packets=3,
n_bytes=172, priority=0 actions=CONTROLLER:65535*

I use the ovs-ofctl command to remove, it is okay








*# ovs-ofctl del-flows s1 "in_port=1 out_port:2" -O OpenFlow13# ovs-ofctl
dump-flows -O OpenFlow13 s1OFPST_FLOW reply (OF1.3) (xid=0x2): cookie=0x0,
duration=142.445s, table=0, n_packets=175, n_bytes=10500,
priority=65535,dl_dst=01:80:c2:00:00:0e,dl_type=0x88cc
actions=CONTROLLER:65535 cookie=0x0, duration=132.211s, table=0,
n_packets=8, n_bytes=672, priority=50,in_port=2,dl_dst=00:00:00:00:00:01
actions=output:1 cookie=0x0, duration=132.209s, table=0, n_packets=6,
n_bytes=588, priority=10,in_port=1,dl_dst=00:00:00:00:00:02
actions=output:3 cookie=0x0, duration=132.209s, table=0, n_packets=0,
n_bytes=0, priority=10,in_port=3,dl_dst=00:00:00:00:00:01
actions=output:1 cookie=0x0, duration=142.465s, table=0, n_packets=7,
n_bytes=340, priority=0 actions=CONTROLLER:65535*

Ask you see, the flow entry in_port=1 and out_port=2 is deleted. I would
like to know why we use controller RYU?

Thank your for your time.


On Tue, Aug 30, 2016 at 7:40 PM, Quân Nguyễn Thanh 
wrote:

> 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.
>
>
>
>
> On Tue, Aug 30, 2016 at 10:35 AM, IWAMOTO Toshihiro  > wrote:
>
>> At Tue, 30 Aug 2016 11:49:27 +0900,
>> Iwase Yusuke wrote:
>> >
>> > Hi,
>> >
>> > Please CC ryu-devel@lists.sourceforge.net and keep this mailing this.
>> >
>> > How about specifying out_port=ofproto.OFPP_ANY and
>> out_group=ofproto.OFPG_ANY
>> > to OFPFlowMod message?
>> >e.g.)
>> >  mod = parser.OFPFlowMod(datapath=datapath, cookie=0,
>> >  priority=priority,
>> >  out_port=ofproto.OFPP_ANY,
>> >  out_group=ofproto.OFPG_ANY,
>> >  command=ofproto.OFPFC_DELETE_STRICT)
>> >
>> > Thunks,
>> > Iwase
>>
>> Use OFPFC_DELETE instead of OFPFC_DELETE_STRICT?
>>
>> >
>> > On 2016年08月30日 09:44, Quân Nguyễn Thanh wrote:
>> > > Hi Iwase Yusuke,
>> > >
>> > > Sorry, if I borther you.
>> > > I'm using OF1.3 with RYU, I would like to remove flow entry basing on
>> the
>> > > priority at all. As below function, but it doesn't work, could you
>> please
>> > > point out my mistake?
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > *def del_flow(self, datapath, priority):ofproto =
>> > > datapath.ofprotoparser = datapath.ofproto_parser
>> #match =
>> > > {}mod = parser.OFPFlowMod(datapath=datapath,
>> cookie=0,
>> > > priority=priority, command=ofproto.OFPFC_DELETE_STRICT)
>> > > datapath.send_msg(mod)*
>> > >
>> > > Thank you for your help.
>> > >
>> >
>> > 
>> --
>> > ___
>> > Ryu-devel mailing list
>> > Ryu-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>
>
>
> --
> Best regards,
> Quan Nguyen
>
>


-- 
Best regards,

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 ryu.controller.ofp_handler of OFPHandler

As well as:

ryu@ryu-vm:~/ryu$ ./bin/ryu-manager --version
ryu-manager 3.6


So I think the problem is not the PYTHONPATH.


Regards,

--
Túlio Albuquerque Pascoal



On 30 August 2016 at 10:10, Victor Orlikowski  wrote:

> 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 installed, so that your
> PATH and PYTHONPATH are correct, before you can proceed.
>
> Best,
> Victor
> --
> Victor J. Orlikowski <> vjo@[cs.]duke.edu
>
> > On Aug 30, 2016, at 9:07 AM, Túlio Pascoal 
> wrote:
> >
> > ImportError: No module named cmd.manager
>
--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-...@python.org
  ...(snip)

Thanks,
Iwase


On 2016年08月30日 15:19, Ajay Chopra wrote:
> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke ; 
> Jayavel Arumugam (IT Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> Hi Ajay,
> I think you should install setuptools module. If you are using Ubuntu, you 
> can install by command
>
> # apt-get install python-setuptools
> Thanks
>
> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
> > wrote:
> Hello Iwase ,
>
> I have installed the latest version . I am still getting the Error message .
> Exact error message is mentioned below .
>
> Traceback (most recent call last):
>   File "setup.py", line 26, in 
> import setuptools
> ImportError: No module named 'setuptools'
>
> -Ajay
> -Original Message-
> From: Iwase Yusuke 
> [mailto:iwase.yusu...@gmail.com]
> Sent: 25 August 2016 13:01
> To: Ajay Chopra >
> Cc: ryu-devel@lists.sourceforge.net
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> Hi,
>
> Ryu drops Python 2.6 support at this patch.
>https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a70453c34
>
> So, the latest Ryu might not work well on your environment.
> Please install Python version 2.7, 3.4 or 3.5, first.
>
> To activate Python virtualenv, please refer to the following example.
> e.g.)
>$ sudo pip install virtualenv
>$ virtualenv -p python2.7 venv
>$ source venv/bin/activate
>(venv) $ pip install .  # "sudo" is not required
>(venv) $ ryu-manager
>
> Thanks,
> Iwase
>
>
> On 2016年08月25日 15:16, Ajay Chopra wrote:
>> This is not the exact message .I can tell you the exact message by tomorrow 
>> as I am not in office today .
>>
>> I am using Linux machine ,python version 2.6 .
>>
>> How to set the virtual environment ?
>>
>> -Ajay
>>
>> -Original Message-
>> From: Iwase Yusuke 
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 10:17
>> To: Ajay Chopra >
>> Cc: ryu-devel@lists.sourceforge.net
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> But, the message "setuptools not available" shows setup.py cannot use 
>> setuptools.
>>
>> IIRC, I didn't see this message, "setuptools not available", before, is this 
>> the exact message you got?
>> Nothing hits with "setuptools not available" on Google.
>>
>> Which environment (e.g. OS, Python version, virtualenv or not) are you using?
>>
>> Thanks,
>> Iwase
>>
>> On 2016年08月25日 13:31, Ajay Chopra wrote:
>>> Yes its being installed .
>>>
>>> -Original Message-
>>> From: Iwase Yusuke 
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 09:36
>>> To: Ajay Chopra >
>>> Cc: ryu-devel@lists.sourceforge.net
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi,
>>>
>>> setuptools is one of required Python package.
>>> Please confirm "python-setuptools" package is installed.
>>>
>>> Thanks,
>>> Iwase
>>>
>>> On 2016年08月25日 12:11, Ajay Chopra wrote:
 Also I wanted to know from where the setuptools file being picked up ?As 
 this file is not present in the working directory .

 -Ajay
 -Original Message-
 From: Ajay Chopra
 Sent: 25 August 2016 08:34
 To: ryu-devel@lists.sourceforge.net
 Cc: 'Iwase Yusuke' 
 >
 Subject: RE: [Ryu-devel] Not able to install the RYU controller

 Hello Iwase ,

 Getting below message

 I am using the below commands “sudo python setup.py install “ its error 
 out with below message .
 " That ryu.hooks not available "
  and when I run the command “python setup.py install” it gives the error 
 that "setuptools not available ".

 -Ajay

 -Original Message-
 From: Iwase Yusuke 
 

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: ryu-devel@lists.sourceforge.net; Iwase Yusuke ; 
Jayavel Arumugam (IT Services), Noida 
Subject: Re: [Ryu-devel] Not able to install the RYU controller

Hi Ajay,
I think you should install setuptools module. If you are using Ubuntu, you can 
install by command

# apt-get install python-setuptools
Thanks

On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
> wrote:
Hello Iwase ,

I have installed the latest version . I am still getting the Error message .
Exact error message is mentioned below .

Traceback (most recent call last):
  File "setup.py", line 26, in 
import setuptools
ImportError: No module named 'setuptools'

-Ajay
-Original Message-
From: Iwase Yusuke 
[mailto:iwase.yusu...@gmail.com]
Sent: 25 August 2016 13:01
To: Ajay Chopra >
Cc: ryu-devel@lists.sourceforge.net
Subject: Re: [Ryu-devel] Not able to install the RYU controller

Hi,

Ryu drops Python 2.6 support at this patch.
   https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a70453c34

So, the latest Ryu might not work well on your environment.
Please install Python version 2.7, 3.4 or 3.5, first.

To activate Python virtualenv, please refer to the following example.
e.g.)
   $ sudo pip install virtualenv
   $ virtualenv -p python2.7 venv
   $ source venv/bin/activate
   (venv) $ pip install .  # "sudo" is not required
   (venv) $ ryu-manager

Thanks,
Iwase


On 2016年08月25日 15:16, Ajay Chopra wrote:
> This is not the exact message .I can tell you the exact message by tomorrow 
> as I am not in office today .
>
> I am using Linux machine ,python version 2.6 .
>
> How to set the virtual environment ?
>
> -Ajay
>
> -Original Message-
> From: Iwase Yusuke 
> [mailto:iwase.yusu...@gmail.com]
> Sent: 25 August 2016 10:17
> To: Ajay Chopra >
> Cc: ryu-devel@lists.sourceforge.net
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> Hi,
>
> But, the message "setuptools not available" shows setup.py cannot use 
> setuptools.
>
> IIRC, I didn't see this message, "setuptools not available", before, is this 
> the exact message you got?
> Nothing hits with "setuptools not available" on Google.
>
> Which environment (e.g. OS, Python version, virtualenv or not) are you using?
>
> Thanks,
> Iwase
>
> On 2016年08月25日 13:31, Ajay Chopra wrote:
>> Yes its being installed .
>>
>> -Original Message-
>> From: Iwase Yusuke 
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 09:36
>> To: Ajay Chopra >
>> Cc: ryu-devel@lists.sourceforge.net
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> setuptools is one of required Python package.
>> Please confirm "python-setuptools" package is installed.
>>
>> Thanks,
>> Iwase
>>
>> On 2016年08月25日 12:11, Ajay Chopra wrote:
>>> Also I wanted to know from where the setuptools file being picked up ?As 
>>> this file is not present in the working directory .
>>>
>>> -Ajay
>>> -Original Message-
>>> From: Ajay Chopra
>>> Sent: 25 August 2016 08:34
>>> To: ryu-devel@lists.sourceforge.net
>>> Cc: 'Iwase Yusuke' >
>>> Subject: RE: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hello Iwase ,
>>>
>>> Getting below message
>>>
>>> I am using the below commands “sudo python setup.py install “ its error out 
>>> with below message .
>>> " That ryu.hooks not available "
>>>  and when I run the command “python setup.py install” it gives the error 
>>> that "setuptools not available ".
>>>
>>> -Ajay
>>>
>>> -Original Message-
>>> From: Iwase Yusuke 
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 07:15
>>> To: Ajay Chopra >
>>> Cc: ryu-devel@lists.sourceforge.net
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi,
>>>
>>> Please keep mailing list.
>>>
>>>
>>> On 2016年08月24日 19:01, Ajay Chopra wrote:
 Hello Iwase ,

 I have copied the RYU and can you help .
 Getting the same error message after that as-well .
>>>
>>> What error message did you get?
>>> On the previous message, No error message seems to be attached.
>>>https://sourceforge.net/p/ryu/mailman/message/35296178/
>>>
>>> 

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 Message-
From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] 
Sent: 30 August 2016 12:10
To: Ajay Chopra 
Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel Arumugam (IT 
Services), Noida 
Subject: Re: [Ryu-devel] Not able to install the RYU controller

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
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-...@python.org
  ...(snip)

Thanks,
Iwase


On 2016年08月30日 15:19, Ajay Chopra wrote:
> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke 
> ; Jayavel Arumugam (IT Services), Noida 
> 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> Hi Ajay,
> I think you should install setuptools module. If you are using Ubuntu, 
> you can install by command
>
> # apt-get install python-setuptools
> Thanks
>
> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
> > wrote:
> Hello Iwase ,
>
> I have installed the latest version . I am still getting the Error message .
> Exact error message is mentioned below .
>
> Traceback (most recent call last):
>   File "setup.py", line 26, in 
> import setuptools
> ImportError: No module named 'setuptools'
>
> -Ajay
> -Original Message-
> From: Iwase Yusuke 
> [mailto:iwase.yusu...@gmail.com]
> Sent: 25 August 2016 13:01
> To: Ajay Chopra >
> Cc: 
> ryu-devel@lists.sourceforge.net >
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> Hi,
>
> Ryu drops Python 2.6 support at this patch.
>
> https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a704
> 53c34
>
> So, the latest Ryu might not work well on your environment.
> Please install Python version 2.7, 3.4 or 3.5, first.
>
> To activate Python virtualenv, please refer to the following example.
> e.g.)
>$ sudo pip install virtualenv
>$ virtualenv -p python2.7 venv
>$ source venv/bin/activate
>(venv) $ pip install .  # "sudo" is not required
>(venv) $ ryu-manager
>
> Thanks,
> Iwase
>
>
> On 2016年08月25日 15:16, Ajay Chopra wrote:
>> This is not the exact message .I can tell you the exact message by tomorrow 
>> as I am not in office today .
>>
>> I am using Linux machine ,python version 2.6 .
>>
>> How to set the virtual environment ?
>>
>> -Ajay
>>
>> -Original Message-
>> From: Iwase Yusuke 
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 10:17
>> To: Ajay Chopra >
>> Cc: 
>> ryu-devel@lists.sourceforge.net> t>
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> But, the message "setuptools not available" shows setup.py cannot use 
>> setuptools.
>>
>> IIRC, I didn't see this message, "setuptools not available", before, is this 
>> the exact message you got?
>> Nothing hits with "setuptools not available" on Google.
>>
>> Which environment (e.g. OS, Python version, virtualenv or not) are you using?
>>
>> Thanks,
>> Iwase
>>
>> On 2016年08月25日 13:31, Ajay Chopra wrote:
>>> Yes its being installed .
>>>
>>> -Original Message-
>>> From: Iwase Yusuke 
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 09:36
>>> To: Ajay Chopra >
>>> Cc: 
>>> ryu-devel@lists.sourceforge.net>> et>
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi,
>>>
>>> setuptools is one of required Python package.
>>> Please confirm "python-setuptools" package is installed.
>>>
>>> Thanks,
>>> Iwase
>>>
>>> On 2016年08月25日 12:11, Ajay Chopra wrote:
 Also I wanted to know from where the setuptools file being picked up ?As 
 this file is not present in the working directory .

 -Ajay
 -Original Message-
 From: Ajay Chopra
 Sent: 25 August 2016 08:34
 To: 
 

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: unknown keyword priority
> 
> It means that openvswitch doesn't support, right?

The short answer would be you cannot do what you want with a single
openflow command.

I checked the OpenFlow spec.
The priority field is used by OFPFC_DELETE_STRICT messages but not by
OFPFC_DELETE messages. And OFPFC_DELETE_STRICT messages don't do
wildcard matches.

You'll need to dump the entire flow table (OFPFlowStatsRequest) and
filter by priority in your python code.

> On Tue, Aug 30, 2016 at 10:35 AM, IWAMOTO Toshihiro 
> wrote:
> 
> > At Tue, 30 Aug 2016 11:49:27 +0900,
> > Iwase Yusuke wrote:
> > >
> > > Hi,
> > >
> > > Please CC ryu-devel@lists.sourceforge.net and keep this mailing this.
> > >
> > > How about specifying out_port=ofproto.OFPP_ANY and
> > out_group=ofproto.OFPG_ANY
> > > to OFPFlowMod message?
> > >e.g.)
> > >  mod = parser.OFPFlowMod(datapath=datapath, cookie=0,
> > >  priority=priority,
> > >  out_port=ofproto.OFPP_ANY,
> > >  out_group=ofproto.OFPG_ANY,
> > >  command=ofproto.OFPFC_DELETE_STRICT)
> > >
> > > Thunks,
> > > Iwase
> >
> > Use OFPFC_DELETE instead of OFPFC_DELETE_STRICT?
> >
> > >
> > > On 2016年08月30日 09:44, Quân Nguyễn Thanh wrote:
> > > > Hi Iwase Yusuke,
> > > >
> > > > Sorry, if I borther you.
> > > > I'm using OF1.3 with RYU, I would like to remove flow entry basing on
> > the
> > > > priority at all. As below function, but it doesn't work, could you
> > please
> > > > point out my mistake?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > *def del_flow(self, datapath, priority):ofproto =
> > > > datapath.ofprotoparser = datapath.ofproto_parser#match
> > =
> > > > {}mod = parser.OFPFlowMod(datapath=datapath,
> > cookie=0,
> > > > priority=priority, command=ofproto.OFPFC_DELETE_STRICT)
> > > > datapath.send_msg(mod)*
> > > >
> > > > Thank you for your help.
> > > >
> > >
> > > 
> > --
> > > ___
> > > Ryu-devel mailing list
> > > Ryu-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
> 
> 
> 
> -- 
> Best regards,
> Quan Nguyen
> [2  ]

--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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 wrote:
> Hi guys,
>
>
> Does anyone know how dpid is calculated in ryu?
>
> Thanks
>
>
> Best regards
>
> AK
>
>
>
> --
>
>
>
> ___
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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",
 "value": "1.0.3.2"
 },
 {
 "type": "SET_FIELD",
 "field": "tcp_src",
 "value": 20
 },
 {
 "field": "tcp_dst",
 "type": "SET_FIELD",
 "value": 25
 },
 {
 "field": "ip_dscp",
 "type": "SET_FIELD",
 "value": 4
 },
 {
 "port": 2,
 "type": "OUTPUT"
 }
 ],
 "cookie": 1,
 "cookie_mask": 1,
 "dpid": 1,
 "flags": 1,
 "hard_timeout": 0,
 "idle_timeout": 0,
 "match": {
 "eth_type": 2048,
 "in_port": 1,
 "ip_dscp": 0,
 "ip_proto": 6,
 "ipv4_dst": "1.0.3.2",
 "ipv4_src": "1.0.1.2",
 },
 "priority": 100,
 "table_id": 0
}

If you want to set the TCP_SRC and TCP_DST to ovs switch,
you must specify a 6 to ip_proto of the match field.
For that reason, it is not possible to change the value of the ip_proto 
by the REST API.
The conditions for setting the match field,
please referring to "7.2.3.8 Header Match Fields" of OpenFlow1.3 Spec.

If you still want to change the value of ip_proto,
please check the specifications of your ovs switch.


Thanks,

On 2016年08月27日 23:12, Richard Mayers wrote:
> Hello folks,
>
> I am trying to install a rule in the switch that changes ip_proto of a
> packet. For example from UDP to TCP. However, it does not work, once I
> add the set_field ip_proto in the actions the rules does not get
> installed in the ovs switch` (version 2.5.90).
>
> To do that I am using the REST API provided in the ryu source code.
> For example the code below should change from udp to tcp, right? Am I
> doing something wrong?
>
> {
> "dpid": 1,
> "cookie": 1,
> "cookie_mask": 1,
> "table_id": 0,
> "idle_timeout": 0,
> "hard_timeout": 0,
> "priority": 100,
> "flags": 1,
> "match":{
> "in_port":1, "udp_src":2, "udp_dst":10, "ipv4_src":"1.0.1.2",
> "ipv4_dst":"1.0.3.2", "ip_dscp":0, "eth_type":2048, "ip_proto":17
> },
> "actions":[
> {
> "type": "SET_FIELD",
> "field": "ipv4_src",
> "value": "10.10.10.10"
> },
> {
> "type": "SET_FIELD",
> "field": "ipv4_dst",
> "value": "1.0.3.2"
> },
> {
> "type": "SET_FIELD",
> "field": "tcp_src",
> "value": 20
> },
> {
> "type": "SET_FIELD",
> "field": "tcp_dst",
> "value": 25
> },
> {
> "type": "SET_FIELD",
> "field": "ip_dscp",
> "value": 4
> },
> {
> "type":"OUTPUT",
> "port": 2
>  },
> {
> "type": "SET_FIELD",
> "field": "ip_proto",
> "value": 6
> }
>
> ]
>  }
>
> PS: You may ask why do I want to change the protocol. But is not a
> problem since it will cross a second switch that will restore the
> protocol to the original one before reaching the end host.
>
> --
> ___
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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:

  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2108, in 
load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named cmd.manager
--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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 
load_entry_point('ryu==4.5', 'console_scripts', 'ryu-manager')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 357,
in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2394, in load_entry_point
return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named cmd.manager
ryu@ryu-vm:~/ryu$ /usr/local/bin/ryu-manager
Traceback (most recent call last):
  File "/usr/local/bin/ryu-manager", line 9, in 
load_entry_point('ryu==4.5', 'console_scripts', 'ryu-manager')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 357,
in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2394, in load_entry_point
return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named cmd.manager



Regards,

--
Túlio Albuquerque Pascoal



On 30 August 2016 at 09:46, Victor Orlikowski  wrote:

> 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:
>
>   File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
> 2108, in load
> entry = __import__(self.module_name, globals(),globals(), ['__name__'])
> *ImportError: No module named cmd.manager*
>
>
--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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:
> 
> Installing ryu-manager script to /usr/local/bin
> Installing ryu script to /usr/local/bin
> Successfully installed ryu
> Cleaning up...
> ryu@ryu-vm:~/ryu$
> ryu@ryu-vm:~/ryu$
> ryu@ryu-vm:~/ryu$ ./bin/ryu-manager --version
> ryu-manager 3.6

--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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 installed, so that your PATH 
and PYTHONPATH are correct, before you can proceed.

Best,
Victor
--
Victor J. Orlikowski <> vjo@[cs.]duke.edu

> On Aug 30, 2016, at 9:07 AM, Túlio Pascoal  wrote:
> 
> ImportError: No module named cmd.manager

--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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
https://pypi.python.org/packages/64/e7/1be893594f9d295745b3c214c1805fd34afe1ca76a9991dc4e68c91183a0/ryu-4.5.tar.gz#md5=4ecc8794f199bef938100ce18308edd9
  Downloading ryu-4.5.tar.gz (1.4MB): 1.4MB downloaded
  Running setup.py egg_info for package ryu

warning: no previously-included files matching '*' found under
directory 'doc/build'
warning: no previously-included files matching '*' found under
directory 'ryu/tests/packet_data_generator'
warning: no previously-included files matching '*' found under
directory 'ryu/tests/packet_data_generator2'
warning: no previously-included files matching '*~' found anywhere in
distribution
warning: no previously-included files matching '*.pyc' found anywhere
in distribution
warning: no previously-included files matching '.gitignore' found
anywhere in distribution
Installing collected packages: ryu
  Found existing installation: ryu 3.6
Can't uninstall 'ryu'. No files were found to uninstall.
  Running setup.py install for ryu
deleting ryu.egg-info/requires.txt

warning: no previously-included files matching '*' found under
directory 'doc/build'
warning: no previously-included files matching '*' found under
directory 'ryu/tests/packet_data_generator'
warning: no previously-included files matching '*' found under
directory 'ryu/tests/packet_data_generator2'
warning: no previously-included files matching '*~' found anywhere in
distribution
warning: no previously-included files matching '*.pyc' found anywhere
in distribution
warning: no previously-included files matching '.gitignore' found
anywhere in distribution
Installing ryu-manager script to /usr/local/bin
Installing ryu script to /usr/local/bin
Successfully installed ryu
Cleaning up...
ryu@ryu-vm:~/ryu$
ryu@ryu-vm:~/ryu$
ryu@ryu-vm:~/ryu$ ./bin/ryu-manager --version
ryu-manager 3.6




Yes, I am using the VM provided by OpenFlow Tutorial.


Regards,

--
Túlio Albuquerque Pascoal



On 30 August 2016 at 04:23, Iwase Yusuke  wrote:

> 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, are you using OpenFlow Tutorial VM images?
> (at https://sourceforge.net/projects/ryu/files/vmimages/OpenFlowTutorial/)
> If so, this VM image seems to be too old and can not work as expected...
>
> Thanks,
> Iwase
>
>
>
> On 2016年08月27日 05:50, Túlio Pascoal wrote:
>
>> Hello,
>>
>> I am trying to update my Ryu version, however I am facing the following:
>>
>> ryu@ryu-vm:~/ryu$ sudo pip install ryu --upgrade
>> Downloading/unpacking ryu from
>> https://pypi.python.org/packages/64/e7/1be893594f9d295745b3c
>> 214c1805fd34afe1ca76a9991dc4e68c91183a0/ryu-4.5.tar.gz#md5=4
>> ecc8794f199bef938100ce18308edd9
>>   Downloading ryu-4.5.tar.gz (1.4MB): 1.4MB downloaded
>>   Running setup.py egg_info for package ryu
>>
>> warning: no previously-included files matching '*' found under
>> directory 'doc/build'
>> warning: no previously-included files matching '*' found under
>> directory 'ryu/tests/packet_data_generator'
>> warning: no previously-included files matching '*' found under
>> directory 'ryu/tests/packet_data_generator2'
>> warning: no previously-included files matching '*~' found anywhere in
>> distribution
>> warning: no previously-included files matching '*.pyc' found anywhere
>> in distribution
>> warning: no previously-included files matching '.gitignore' found
>> anywhere in distribution
>> Installing collected packages: ryu
>>   Found existing installation: ryu 3.6
>> Can't uninstall 'ryu'. No files were found to uninstall.
>>   Running setup.py install for ryu
>> deleting ryu.egg-info/requires.txt
>>
>> warning: no previously-included files matching '*' found under
>> directory 'doc/build'
>> warning: no previously-included files matching '*' found under
>> directory 'ryu/tests/packet_data_generator'
>> warning: no previously-included files matching '*' found under
>> directory 'ryu/tests/packet_data_generator2'
>> warning: no previously-included files matching '*~' found anywhere in
>> distribution
>> warning: no previously-included files matching '*.pyc' found anywhere
>> in distribution
>> warning: no previously-included files matching '.gitignore' found
>> anywhere in distribution
>> Installing ryu-manager script to /usr/local/bin
>> Installing ryu script to /usr/local/bin
>> Successfully installed ryu
>> Cleaning up...
>>
>> 

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.




On Tue, Aug 30, 2016 at 10:35 AM, IWAMOTO Toshihiro 
wrote:

> At Tue, 30 Aug 2016 11:49:27 +0900,
> Iwase Yusuke wrote:
> >
> > Hi,
> >
> > Please CC ryu-devel@lists.sourceforge.net and keep this mailing this.
> >
> > How about specifying out_port=ofproto.OFPP_ANY and
> out_group=ofproto.OFPG_ANY
> > to OFPFlowMod message?
> >e.g.)
> >  mod = parser.OFPFlowMod(datapath=datapath, cookie=0,
> >  priority=priority,
> >  out_port=ofproto.OFPP_ANY,
> >  out_group=ofproto.OFPG_ANY,
> >  command=ofproto.OFPFC_DELETE_STRICT)
> >
> > Thunks,
> > Iwase
>
> Use OFPFC_DELETE instead of OFPFC_DELETE_STRICT?
>
> >
> > On 2016年08月30日 09:44, Quân Nguyễn Thanh wrote:
> > > Hi Iwase Yusuke,
> > >
> > > Sorry, if I borther you.
> > > I'm using OF1.3 with RYU, I would like to remove flow entry basing on
> the
> > > priority at all. As below function, but it doesn't work, could you
> please
> > > point out my mistake?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > *def del_flow(self, datapath, priority):ofproto =
> > > datapath.ofprotoparser = datapath.ofproto_parser#match
> =
> > > {}mod = parser.OFPFlowMod(datapath=datapath,
> cookie=0,
> > > priority=priority, command=ofproto.OFPFC_DELETE_STRICT)
> > > datapath.send_msg(mod)*
> > >
> > > Thank you for your help.
> > >
> >
> > 
> --
> > ___
> > Ryu-devel mailing list
> > Ryu-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>



-- 
Best regards,
Quan Nguyen
--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


[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
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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 not, I recommend to upgrade python version or use virtualenv
to create python2.7 or python3.4 environment.

Thanks,
Iwase


On 2016年08月30日 15:43, Ajay Chopra wrote:
> 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 Message-
> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
> Sent: 30 August 2016 12:10
> To: Ajay Chopra 
> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel Arumugam (IT 
> Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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
> Home-page: https://github.com/pypa/setuptools
> Author: Python Packaging Authority
> Author-email: distutils-...@python.org
>   ...(snip)
>
> Thanks,
> Iwase
>
>
> On 2016年08月30日 15:19, Ajay Chopra wrote:
>> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke
>> ; Jayavel Arumugam (IT Services), Noida
>> 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi Ajay,
>> I think you should install setuptools module. If you are using Ubuntu,
>> you can install by command
>>
>> # apt-get install python-setuptools
>> Thanks
>>
>> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
>> > wrote:
>> Hello Iwase ,
>>
>> I have installed the latest version . I am still getting the Error message .
>> Exact error message is mentioned below .
>>
>> Traceback (most recent call last):
>>   File "setup.py", line 26, in 
>> import setuptools
>> ImportError: No module named 'setuptools'
>>
>> -Ajay
>> -Original Message-
>> From: Iwase Yusuke
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 13:01
>> To: Ajay Chopra >
>> Cc:
>> ryu-devel@lists.sourceforge.net>>
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> Ryu drops Python 2.6 support at this patch.
>>
>> https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a704
>> 53c34
>>
>> So, the latest Ryu might not work well on your environment.
>> Please install Python version 2.7, 3.4 or 3.5, first.
>>
>> To activate Python virtualenv, please refer to the following example.
>> e.g.)
>>$ sudo pip install virtualenv
>>$ virtualenv -p python2.7 venv
>>$ source venv/bin/activate
>>(venv) $ pip install .  # "sudo" is not required
>>(venv) $ ryu-manager
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月25日 15:16, Ajay Chopra wrote:
>>> This is not the exact message .I can tell you the exact message by tomorrow 
>>> as I am not in office today .
>>>
>>> I am using Linux machine ,python version 2.6 .
>>>
>>> How to set the virtual environment ?
>>>
>>> -Ajay
>>>
>>> -Original Message-
>>> From: Iwase Yusuke
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 10:17
>>> To: Ajay Chopra >
>>> Cc:
>>> ryu-devel@lists.sourceforge.net>> t>
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi,
>>>
>>> But, the message "setuptools not available" shows setup.py cannot use 
>>> setuptools.
>>>
>>> IIRC, I didn't see this message, "setuptools not available", before, is 
>>> this the exact message you got?
>>> Nothing hits with "setuptools not available" on Google.
>>>
>>> Which environment (e.g. OS, Python version, virtualenv or not) are you 
>>> using?
>>>
>>> Thanks,
>>> Iwase
>>>
>>> On 2016年08月25日 13:31, Ajay Chopra wrote:
 Yes its being installed .

 -Original Message-
 From: Iwase Yusuke
 [mailto:iwase.yusu...@gmail.com]
 Sent: 25 August 2016 09:36
 To: Ajay Chopra 

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日 16:05, Ajay Chopra wrote:
> 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 
> 
> Subject: RE: [Ryu-devel] Not able to install the RYU controller
>
> 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; ntqua...@gmail.com; Jayavel Arumugam (IT 
> Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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 not, I recommend to upgrade python version or use virtualenv to create 
> python2.7 or python3.4 environment.
>
> Thanks,
> Iwase
>
>
> On 2016年08月30日 15:43, Ajay Chopra wrote:
>> 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 Message-
>> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
>> Sent: 30 August 2016 12:10
>> To: Ajay Chopra 
>> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel
>> Arumugam (IT Services), Noida 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> 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
>> Home-page: https://github.com/pypa/setuptools
>> Author: Python Packaging Authority
>> Author-email: distutils-...@python.org
>>   ...(snip)
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月30日 15:19, Ajay Chopra wrote:
>>> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke
>>> ; Jayavel Arumugam (IT Services), Noida
>>> 
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi Ajay,
>>> I think you should install setuptools module. If you are using
>>> Ubuntu, you can install by command
>>>
>>> # apt-get install python-setuptools
>>> Thanks
>>>
>>> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
>>> > wrote:
>>> Hello Iwase ,
>>>
>>> I have installed the latest version . I am still getting the Error message .
>>> Exact error message is mentioned below .
>>>
>>> Traceback (most recent call last):
>>>   File "setup.py", line 26, in 
>>> import setuptools
>>> ImportError: No module named 'setuptools'
>>>
>>> -Ajay
>>> -Original Message-
>>> From: Iwase Yusuke
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 13:01
>>> To: Ajay Chopra >
>>> Cc:
>>> ryu-devel@lists.sourceforge.net>> t

>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi,
>>>
>>> Ryu drops Python 2.6 support at this patch.
>>>
>>> https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a70
>>> 4
>>> 53c34
>>>
>>> So, the latest Ryu might not work well on your environment.
>>> Please install Python version 2.7, 3.4 or 3.5, first.
>>>
>>> To activate Python virtualenv, please refer to the following example.
>>> e.g.)
>>>$ sudo pip install virtualenv
>>>$ virtualenv -p python2.7 venv
>>>$ source venv/bin/activate
>>>(venv) $ pip install .  # "sudo" is not required
>>>(venv) $ ryu-manager
>>>
>>> Thanks,
>>> Iwase
>>>
>>>
>>> On 2016年08月25日 15:16, Ajay Chopra 

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 able to install the RYU controller

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 
Subject: RE: [Ryu-devel] Not able to install the RYU controller

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; ntqua...@gmail.com; Jayavel Arumugam (IT 
Services), Noida 
Subject: Re: [Ryu-devel] Not able to install the RYU controller

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 not, I recommend to upgrade python version or use virtualenv to create 
python2.7 or python3.4 environment.

Thanks,
Iwase


On 2016年08月30日 15:43, Ajay Chopra wrote:
> 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 Message-
> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
> Sent: 30 August 2016 12:10
> To: Ajay Chopra 
> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel 
> Arumugam (IT Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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
> Home-page: https://github.com/pypa/setuptools
> Author: Python Packaging Authority
> Author-email: distutils-...@python.org
>   ...(snip)
>
> Thanks,
> Iwase
>
>
> On 2016年08月30日 15:19, Ajay Chopra wrote:
>> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke 
>> ; Jayavel Arumugam (IT Services), Noida 
>> 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi Ajay,
>> I think you should install setuptools module. If you are using 
>> Ubuntu, you can install by command
>>
>> # apt-get install python-setuptools
>> Thanks
>>
>> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
>> > wrote:
>> Hello Iwase ,
>>
>> I have installed the latest version . I am still getting the Error message .
>> Exact error message is mentioned below .
>>
>> Traceback (most recent call last):
>>   File "setup.py", line 26, in 
>> import setuptools
>> ImportError: No module named 'setuptools'
>>
>> -Ajay
>> -Original Message-
>> From: Iwase Yusuke
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 13:01
>> To: Ajay Chopra >
>> Cc:
>> ryu-devel@lists.sourceforge.net> t
>>>
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> Ryu drops Python 2.6 support at this patch.
>>
>> https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a70
>> 4
>> 53c34
>>
>> So, the latest Ryu might not work well on your environment.
>> Please install Python version 2.7, 3.4 or 3.5, first.
>>
>> To activate Python virtualenv, please refer to the following example.
>> e.g.)
>>$ sudo pip install virtualenv
>>$ virtualenv -p python2.7 venv
>>$ source venv/bin/activate
>>(venv) $ pip install .  # "sudo" is not required
>>(venv) $ ryu-manager
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月25日 15:16, Ajay Chopra wrote:
>>> This is not the exact message .I can tell you the exact message by tomorrow 
>>> as I am not in office today .
>>>
>>> I am using Linux machine ,python version 2.6 .
>>>
>>> How 

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 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 to do
>
> So , I need to install which version of setup-tools and where I need to copy 
> it so that it can be picked by the
> python script.
>
> -Ajay
> -Original Message-
> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
> Sent: 30 August 2016 12:42
> To: Ajay Chopra 
> Cc: ryu-devel@lists.sourceforge.net; Jayavel Arumugam (IT Services), Noida 
> ; ntqua...@gmail.com
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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日 16:05, Ajay Chopra wrote:
>> 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
>> 
>> Subject: RE: [Ryu-devel] Not able to install the RYU controller
>>
>> 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; ntqua...@gmail.com; Jayavel
>> Arumugam (IT Services), Noida 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> 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 not, I recommend to upgrade python version or use virtualenv to create 
>> python2.7 or python3.4 environment.
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月30日 15:43, Ajay Chopra wrote:
>>> 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 Message-
>>> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
>>> Sent: 30 August 2016 12:10
>>> To: Ajay Chopra 
>>> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel
>>> Arumugam (IT Services), Noida 
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> 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
>>> Home-page: https://github.com/pypa/setuptools
>>> Author: Python Packaging Authority
>>> Author-email: distutils-...@python.org
>>>   ...(snip)
>>>
>>> Thanks,
>>> Iwase
>>>
>>>
>>> On 2016年08月30日 15:19, Ajay Chopra wrote:
 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke
 ; Jayavel Arumugam (IT Services), Noida
 
 Subject: Re: [Ryu-devel] Not able to install the RYU controller

 Hi Ajay,
 I think you should install setuptools module. If you are using
 Ubuntu, you can install by command

 # apt-get install python-setuptools
 Thanks

 On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
 > wrote:
 Hello Iwase ,

 I have installed the latest version . I am still getting the Error message 
 .
 Exact error message is 

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; ntqua...@gmail.com; Jayavel Arumugam (IT 
Services), Noida 
Subject: Re: [Ryu-devel] Not able to install the RYU controller

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 not, I recommend to upgrade python version or use virtualenv to create 
python2.7 or python3.4 environment.

Thanks,
Iwase


On 2016年08月30日 15:43, Ajay Chopra wrote:
> 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 Message-
> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
> Sent: 30 August 2016 12:10
> To: Ajay Chopra 
> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel 
> Arumugam (IT Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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
> Home-page: https://github.com/pypa/setuptools
> Author: Python Packaging Authority
> Author-email: distutils-...@python.org
>   ...(snip)
>
> Thanks,
> Iwase
>
>
> On 2016年08月30日 15:19, Ajay Chopra wrote:
>> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke 
>> ; Jayavel Arumugam (IT Services), Noida 
>> 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi Ajay,
>> I think you should install setuptools module. If you are using 
>> Ubuntu, you can install by command
>>
>> # apt-get install python-setuptools
>> Thanks
>>
>> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
>> > wrote:
>> Hello Iwase ,
>>
>> I have installed the latest version . I am still getting the Error message .
>> Exact error message is mentioned below .
>>
>> Traceback (most recent call last):
>>   File "setup.py", line 26, in 
>> import setuptools
>> ImportError: No module named 'setuptools'
>>
>> -Ajay
>> -Original Message-
>> From: Iwase Yusuke
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 13:01
>> To: Ajay Chopra >
>> Cc:
>> ryu-devel@lists.sourceforge.net> t
>>>
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> Ryu drops Python 2.6 support at this patch.
>>
>> https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a70
>> 4
>> 53c34
>>
>> So, the latest Ryu might not work well on your environment.
>> Please install Python version 2.7, 3.4 or 3.5, first.
>>
>> To activate Python virtualenv, please refer to the following example.
>> e.g.)
>>$ sudo pip install virtualenv
>>$ virtualenv -p python2.7 venv
>>$ source venv/bin/activate
>>(venv) $ pip install .  # "sudo" is not required
>>(venv) $ ryu-manager
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月25日 15:16, Ajay Chopra wrote:
>>> This is not the exact message .I can tell you the exact message by tomorrow 
>>> as I am not in office today .
>>>
>>> I am using Linux machine ,python version 2.6 .
>>>
>>> How to set the virtual environment ?
>>>
>>> -Ajay
>>>
>>> -Original Message-
>>> From: Iwase Yusuke
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 10:17
>>> To: Ajay Chopra >
>>> Cc:
>>> ryu-devel@lists.sourceforge.net>> e
>>> t>
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi,
>>>
>>> But, the message "setuptools not available" shows setup.py cannot use 
>>> setuptools.
>>>
>>> IIRC, I didn't see this message, "setuptools not available", before, is 
>>> this the exact message you got?
>>> Nothing hits with "setuptools not 

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, are you using OpenFlow Tutorial VM images?
(at https://sourceforge.net/projects/ryu/files/vmimages/OpenFlowTutorial/)
If so, this VM image seems to be too old and can not work as expected...

Thanks,
Iwase


On 2016年08月27日 05:50, Túlio Pascoal wrote:
> Hello,
>
> I am trying to update my Ryu version, however I am facing the following:
>
> ryu@ryu-vm:~/ryu$ sudo pip install ryu --upgrade
> Downloading/unpacking ryu from
> https://pypi.python.org/packages/64/e7/1be893594f9d295745b3c214c1805fd34afe1ca76a9991dc4e68c91183a0/ryu-4.5.tar.gz#md5=4ecc8794f199bef938100ce18308edd9
>   Downloading ryu-4.5.tar.gz (1.4MB): 1.4MB downloaded
>   Running setup.py egg_info for package ryu
>
> warning: no previously-included files matching '*' found under
> directory 'doc/build'
> warning: no previously-included files matching '*' found under
> directory 'ryu/tests/packet_data_generator'
> warning: no previously-included files matching '*' found under
> directory 'ryu/tests/packet_data_generator2'
> warning: no previously-included files matching '*~' found anywhere in
> distribution
> warning: no previously-included files matching '*.pyc' found anywhere
> in distribution
> warning: no previously-included files matching '.gitignore' found
> anywhere in distribution
> Installing collected packages: ryu
>   Found existing installation: ryu 3.6
> Can't uninstall 'ryu'. No files were found to uninstall.
>   Running setup.py install for ryu
> deleting ryu.egg-info/requires.txt
>
> warning: no previously-included files matching '*' found under
> directory 'doc/build'
> warning: no previously-included files matching '*' found under
> directory 'ryu/tests/packet_data_generator'
> warning: no previously-included files matching '*' found under
> directory 'ryu/tests/packet_data_generator2'
> warning: no previously-included files matching '*~' found anywhere in
> distribution
> warning: no previously-included files matching '*.pyc' found anywhere
> in distribution
> warning: no previously-included files matching '.gitignore' found
> anywhere in distribution
> Installing ryu-manager script to /usr/local/bin
> Installing ryu script to /usr/local/bin
> Successfully installed ryu
> Cleaning up...
>
> As you can see my current version is 3.6 and I would like to try 4.5.
>
> I run my controller by: ryu@ryu-vm:~/ryu$ ./bin/ryu-manager
> ryu/app/simple_switch_13.py
>
> What can be happening?
>
> Regards,
>
> --
> Túlio Albuquerque Pascoal
> 
> 
>
>
>
> --
>
>
>
> ___
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

--
___
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


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...
>
> 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 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 to do
>>
>> So , I need to install which version of setup-tools and where I need to copy 
>> it so that it can be picked by the
>> python script.
>>
>> -Ajay
>> -Original Message-
>> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
>> Sent: 30 August 2016 12:42
>> To: Ajay Chopra 
>> Cc: ryu-devel@lists.sourceforge.net; Jayavel Arumugam (IT Services), Noida 
>> ; ntqua...@gmail.com
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> 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日 16:05, Ajay Chopra wrote:
>>> 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
>>> 
>>> Subject: RE: [Ryu-devel] Not able to install the RYU controller
>>>
>>> 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; ntqua...@gmail.com; Jayavel
>>> Arumugam (IT Services), Noida 
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> 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 not, I recommend to upgrade python version or use virtualenv to create 
>>> python2.7 or python3.4 environment.
>>>
>>> Thanks,
>>> Iwase
>>>
>>>
>>> On 2016年08月30日 15:43, Ajay Chopra wrote:
 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 Message-
 From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
 Sent: 30 August 2016 12:10
 To: Ajay Chopra 
 Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel
 Arumugam (IT Services), Noida 
 Subject: Re: [Ryu-devel] Not able to install the RYU controller

 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
 Home-page: https://github.com/pypa/setuptools
 Author: Python Packaging Authority
 Author-email: distutils-...@python.org
   ...(snip)

 Thanks,
 Iwase


 On 2016年08月30日 15:19, Ajay Chopra wrote:
> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke
> ; Jayavel Arumugam (IT Services), Noida
> 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> Hi Ajay,
> I think you should 

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 
Subject: RE: [Ryu-devel] Not able to install the RYU controller

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; ntqua...@gmail.com; Jayavel Arumugam (IT 
Services), Noida 
Subject: Re: [Ryu-devel] Not able to install the RYU controller

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 not, I recommend to upgrade python version or use virtualenv to create 
python2.7 or python3.4 environment.

Thanks,
Iwase


On 2016年08月30日 15:43, Ajay Chopra wrote:
> 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 Message-
> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
> Sent: 30 August 2016 12:10
> To: Ajay Chopra 
> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel 
> Arumugam (IT Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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
> Home-page: https://github.com/pypa/setuptools
> Author: Python Packaging Authority
> Author-email: distutils-...@python.org
>   ...(snip)
>
> Thanks,
> Iwase
>
>
> On 2016年08月30日 15:19, Ajay Chopra wrote:
>> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke 
>> ; Jayavel Arumugam (IT Services), Noida 
>> 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi Ajay,
>> I think you should install setuptools module. If you are using 
>> Ubuntu, you can install by command
>>
>> # apt-get install python-setuptools
>> Thanks
>>
>> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
>> > wrote:
>> Hello Iwase ,
>>
>> I have installed the latest version . I am still getting the Error message .
>> Exact error message is mentioned below .
>>
>> Traceback (most recent call last):
>>   File "setup.py", line 26, in 
>> import setuptools
>> ImportError: No module named 'setuptools'
>>
>> -Ajay
>> -Original Message-
>> From: Iwase Yusuke
>> [mailto:iwase.yusu...@gmail.com]
>> Sent: 25 August 2016 13:01
>> To: Ajay Chopra >
>> Cc:
>> ryu-devel@lists.sourceforge.net> t
>>>
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> Hi,
>>
>> Ryu drops Python 2.6 support at this patch.
>>
>> https://github.com/osrg/ryu/commit/af5e6b5fb7bfcce070fb94c46157546a70
>> 4
>> 53c34
>>
>> So, the latest Ryu might not work well on your environment.
>> Please install Python version 2.7, 3.4 or 3.5, first.
>>
>> To activate Python virtualenv, please refer to the following example.
>> e.g.)
>>$ sudo pip install virtualenv
>>$ virtualenv -p python2.7 venv
>>$ source venv/bin/activate
>>(venv) $ pip install .  # "sudo" is not required
>>(venv) $ ryu-manager
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月25日 15:16, Ajay Chopra wrote:
>>> This is not the exact message .I can tell you the exact message by tomorrow 
>>> as I am not in office today .
>>>
>>> I am using Linux machine ,python version 2.6 .
>>>
>>> How to set the virtual environment ?
>>>
>>> -Ajay
>>>
>>> -Original Message-
>>> From: Iwase Yusuke
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 10:17
>>> To: Ajay Chopra >
>>> Cc:
>>> 

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 to do

So , I need to install which version of setup-tools and where I need to copy it 
so that it can be picked by the 
python script.

-Ajay
-Original Message-
From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] 
Sent: 30 August 2016 12:42
To: Ajay Chopra 
Cc: ryu-devel@lists.sourceforge.net; Jayavel Arumugam (IT Services), Noida 
; ntqua...@gmail.com
Subject: Re: [Ryu-devel] Not able to install the RYU controller

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日 16:05, Ajay Chopra wrote:
> 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 
> 
> Subject: RE: [Ryu-devel] Not able to install the RYU controller
>
> 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; ntqua...@gmail.com; Jayavel 
> Arumugam (IT Services), Noida 
> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>
> 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 not, I recommend to upgrade python version or use virtualenv to create 
> python2.7 or python3.4 environment.
>
> Thanks,
> Iwase
>
>
> On 2016年08月30日 15:43, Ajay Chopra wrote:
>> 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 Message-
>> From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com]
>> Sent: 30 August 2016 12:10
>> To: Ajay Chopra 
>> Cc: ntqua...@gmail.com; ryu-devel@lists.sourceforge.net; Jayavel 
>> Arumugam (IT Services), Noida 
>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>
>> 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
>> Home-page: https://github.com/pypa/setuptools
>> Author: Python Packaging Authority
>> Author-email: distutils-...@python.org
>>   ...(snip)
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年08月30日 15:19, Ajay Chopra wrote:
>>> 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: ryu-devel@lists.sourceforge.net; Iwase Yusuke 
>>> ; Jayavel Arumugam (IT Services), Noida 
>>> 
>>> Subject: Re: [Ryu-devel] Not able to install the RYU controller
>>>
>>> Hi Ajay,
>>> I think you should install setuptools module. If you are using 
>>> Ubuntu, you can install by command
>>>
>>> # apt-get install python-setuptools
>>> Thanks
>>>
>>> On Mon, Aug 29, 2016 at 3:19 PM, Ajay Chopra 
>>> > wrote:
>>> Hello Iwase ,
>>>
>>> I have installed the latest version . I am still getting the Error message .
>>> Exact error message is mentioned below .
>>>
>>> Traceback (most recent call last):
>>>   File "setup.py", line 26, in 
>>> import setuptools
>>> ImportError: No module named 'setuptools'
>>>
>>> -Ajay
>>> -Original Message-
>>> From: Iwase Yusuke
>>> [mailto:iwase.yusu...@gmail.com]
>>> Sent: 25 August 2016 13:01
>>> To: Ajay Chopra >
>>> Cc:
>>>