Hi,
Thanks for your answer.
But the weird thing is that I still get an error. And even if I get a
confirmation that the flow are added they are not present...
ubuntu@starterkit:~/ryu[03:41] (master)$ PYTHONPATH=~/ryu
~/ryu/bin/ryu-manager --verbose --wsapi-port 9090
~/ryu/ryu/app/ofctl_rest.py
loading app /home/ubuntu/ryu/ryu/app/ofctl_rest.py
loading app ryu.controller.ofp_handler
instantiating app None of DPSet
creating context dpset
creating context wsgi
instantiating app /home/ubuntu/ryu/ryu/app/ofctl_rest.py of RestStatsApi
instantiating app ryu.controller.ofp_handler of OFPHandler
BRICK dpset
CONSUMES EventOFPSwitchFeatures
CONSUMES EventOFPStateChange
CONSUMES EventOFPPortStatus
BRICK ofp_event
PROVIDES EventOFPDescStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPMeterStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPGroupStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPFlowStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPGroupFeaturesStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPPortStatus TO {'dpset': set(['main'])}
PROVIDES EventOFPGroupDescStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPMeterFeaturesStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPSwitchFeatures TO {'dpset': set(['config'])}
PROVIDES EventOFPPortStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPMeterConfigStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPStateChange TO {'dpset': set(['main', 'dead'])}
CONSUMES EventOFPEchoRequest
CONSUMES EventOFPSwitchFeatures
CONSUMES EventOFPPortDescStatsReply
CONSUMES EventOFPErrorMsg
CONSUMES EventOFPHello
BRICK RestStatsApi
CONSUMES EventOFPDescStatsReply
CONSUMES EventOFPMeterStatsReply
CONSUMES EventOFPGroupStatsReply
CONSUMES EventOFPFlowStatsReply
CONSUMES EventOFPGroupFeaturesStatsReply
CONSUMES EventOFPGroupDescStatsReply
CONSUMES EventOFPMeterFeaturesStatsReply
CONSUMES EventOFPPortStatsReply
CONSUMES EventOFPMeterConfigStatsReply
CONSUMES EventOFPStatsReply
hub: uncaught exception: Traceback (most recent call last):
File "/home/ubuntu/ryu/ryu/lib/hub.py", line 52, in _launch
func(*args, **kwargs)
File "/home/ubuntu/ryu/ryu/controller/controller.py", line 70, in __call__
self.server_loop()
File "/home/ubuntu/ryu/ryu/controller/controller.py", line 93, in server_loop
datapath_connection_factory)
File "/home/ubuntu/ryu/ryu/lib/hub.py", line 108, in __init__
self.server = eventlet.listen(listen_info)
File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py",
line 38, in listen
sock.bind(addr)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use
(2502) wsgi starting up on http://0.0.0.0:9090/
(2502) accepted ('127.0.0.1', 35708)
127.0.0.1 - - [26/Mar/2015 03:43:38] "POST /stats/flowentry/add
HTTP/1.1" 404 122 0.007363
(2502) accepted ('127.0.0.1', 35710)
127.0.0.1 - - [26/Mar/2015 03:43:38] "POST /stats/flowentry/add
HTTP/1.1" 404 122 0.004507
(2502) accepted ('127.0.0.1', 35712)
127.0.0.1 - - [26/Mar/2015 03:43:39] "POST /stats/flowentry/add
HTTP/1.1" 404 122 0.000628
(2502) accepted ('127.0.0.1', 35714)
127.0.0.1 - - [26/Mar/2015 03:43:39] "POST /stats/flowentry/add
HTTP/1.1" 404 122 0.003331
ubuntu@starterkit:~[03:43]$ curl -X GET http://localhost:8080/stats/flow/1
{"1": []}
(and fyi I am using this VM
http://sdnhub.org/releases/sdn-starter-kit-ryu/ and I just updated OVS
to 2.3.1 after installing it).
Best,
Clément
On 26 March 2015 at 01:06, Yusuke Iwase <[email protected]> wrote:
> Hi Clément,
>
> On 2015年03月25日 23:46, Clément Rault wrote:
>> Hi,
>>
>> Is there a way to change the port used by the REST API (i.e. use
>> another one than 8080)?
>
> You can use '--wsapi-port' option.
>
> $ ryu-manager ryu.app.ofctl_rest --wsapi-port 9090
> loading app ryu.app.ofctl_rest
> loading app ryu.controller.ofp_handler
> instantiating app None of DPSet
> creating context dpset
> creating context wsgi
> instantiating app ryu.app.ofctl_rest of RestStatsApi
> instantiating app ryu.controller.ofp_handler of OFPHandler
> (4607) wsgi starting up on http://0.0.0.0:9090/
>
>
> OR, please modify 'etc/ryu/ryu.conf'.
>
> $ cat etc/ryu/ryu.conf
> # Sample configuration file
>
> [DEFAULT]
>
> #wsapi_host=<hostip>
> #wsapi_port=<port:8080>
> wsapi_port=9090 # <--- the port used by the REST API
> #ofp_listen_host=<hostip>
> #ofp_tcp_listen_port=<port:6633>
>
>
> Thanks
>
>>
>> Because I am using this new VM image
>> http://sdnhub.org/releases/sdn-starter-kit-ryu/ and the SDN Hub
>> Service is already using this port.
>>
>> Best,
>> Clément
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel