Hi,
Thanks for your suggestion??I have tried to change the wsapi port and the two
controllers' REST api worked very well.
Thanks!
------------------ ???????? ------------------
??????: "Iwase Yusuke"<[email protected]>;
????????: 2018??3??27??(??????) ????11:53
??????: " "<[email protected]>;
????: "Ryu-devel"<[email protected]>;
????: Re: [Ryu-devel] Problem about two controllers use REST api together
Hi,
The cause of this problem seems to be the both controller use the same REST API
(WSGI) port on the same host. How about specifying "--wsapi-port" (or
"--wsapi-host" option?
$ ryu-manager --help
...(snip)...
--wsapi-host WSAPI_HOST
webapp listen host (default 0.0.0.0)
--wsapi-port WSAPI_PORT
webapp listen port (default 8080)
...(snip)...
Thanks,
Iwase
On 2018??03??27?? 12:00, 634674795 wrote:
> Hello??everyone??
> My project needs two controllers??and both they need REST function.
> My cmd to start contrller1??controller1 connect with 3 switches?? is:
> ryu-manager --ofpcp-listen-port 6633 ofctl_rest.py Controller1.py
> Then I open another cmd window and start controller2??controller2 also
> connect with 3 switches??:
> ryu-manager --ofpcp-listen-port 6634 ofctl_rest.py Controller2.py
> The next step is use mininet to bulid topology and all switches??hosts
> work
> very well.
> Finally??I use POSTMAN to call REST api:
> http://localhost:8080/stats/switches
> I can only get 3 switches' which they are connect with controller1, the other
> 3
> switches connect with controller2 cannot be found.
> Can you help me? Thank you!
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel