Hi Iwase, Thanks so much for your response. I want to modify the requests/responses that are sent to Ryu ofctl_rest, therefore I'm building another application (called my app). This app can provide similar APIs as Ryu ofctl_rest app.However, I don't want other applications to communicate directly with Ry ofctl_rest app. For this reason, I'm telling Ryu ofctl_rest app running on a secret port.
Switches <----> Ryu ofctl_rest app (secret port) <----> My app (default port 8080)<----> other applications Btw, I'm working on your solution. Hope I could solve it soon. Regards, Tan Nguyen Aalto University ________________________________________ From: Iwase Yusuke [[email protected]] Sent: Monday, July 25, 2016 9:30 AM To: Nguyen Van Cc: [email protected] Subject: Re: [Ryu-devel] Ryu_support_2 apps on 2 wsapi-ports Hi, Why you need to separate wsgi ports for each applications? I think you can separate the API for each applications by using URI path pattern. http://osrg.github.io/ryu-book/en/html/rest_api.html#implementing-simpleswitchcontroller-class e.g.) For application1: PATH=/application1 $ curl -X GET http://localhost:8080/application1 For application2: PATH=/application2/foobar $ curl -X GET http://localhost:8080/application2/foobar Thanks, Iwase On 2016年07月21日 01:59, Nguyen Van wrote: > Hi Ryu development team, > > I'm doing a small project using Ryu applications and encountering on small > issue. I want to run two applications in parallel as 2 web servers on 2 > different wsapi-ports but with *only one controller:* > ryu-manager ryu.app.<app 1> ryu.app<app 2> > > However, I could not tell ryu-manager to do such action. Therefore, I have to > run 2 ryu-manager commands as followings: > ryu-manager --wsapi-port 8080 --verbose ryu.app.<app 1> > ryu-manager --wsapi-port 8081 --verbose ryu.app.<app 2> > > Can you please check and help me in this case? > > Thanks & Best Regards, > Tan Nguyen > Aalto University > Email: [email protected] > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
