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

Reply via email to