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??
 ?0?2 ?0?2 My project needs two controllers??and both they need REST function.
 ?0?2 ?0?2 My cmd to start contrller1??controller1 connect with 3 switches?? is:
 ?0?2 ?0?2?0?2ryu-manager --ofpcp-listen-port 6633 ofctl_rest.py Controller1.py
?0?2 ?0?2 Then I open another cmd window and start controller2??controller2 also connect with 3 switches??:
 ?0?2 ?0?2?0?2ryu-manager --ofpcp-listen-port 6634 ofctl_rest.py Controller2.py
?0?2 ?0?2 The next step is use mininet to bulid topology and all switches??hosts work very well.
 ?0?2 ?0?2 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.
 ?0?2 ?0?2 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
Ryu-devel@lists.sourceforge.net
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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to