Ryu is able to talk Open vSwitch db protocol directly. get/set-controller command is available. It's equivalent of ovs-vsctl get/set-controller. See ryu.lib.ovs.vsctl.py. The real usage is in ryu.app.quantum_adapter.OVSSwitch.set_ovsdb_addr. It uses set-controller. You can easily understand the case of get-controller.
Unfortunately the ip address/port of ovsdb-server is necessary in order for ryu to talk to ovsdb-server. So if you can know address/port of ovsdb-server in advance, it works for you. If you can't, it doesn't work for you because it just moves the problem from OF protocol to ovsdb protocol. thanks, On Mon, Mar 25, 2013 at 03:46:10PM +0800, ?悦?美 wrote: > Hi Guys, > > As we all know,it is easy to modify the open vswitch'default tcp port(6634) > using 'listenPort', > > but I want to find if there is a method or ofp message in ryu to get the open > vswitch'tcp address and port > > when the open vswitch connect to the controller(ryu)? > > It has puzzled me all day. > > Can anyone give give me some hints! > > > Thanks > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel -- yamahata ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel