I have solved this problem.
using either  cmd = ovs_vsctl.VSCtlCommand('list-ports',('wan-br',))  or  cmd = 
ovs_vsctl.VSCtlCommand('list-ports',['wan-br'])
Thanks

Zhao Jun

From: [email protected]
To: [email protected]
Date: Fri, 1 Jan 2016 21:02:30 +0800
Subject: [Ryu-devel] does ryu support bridge name with hyphen?




Hi,I have a ovs with a bridge named wan-brI want to use ryu's vsctl lib to get 
port lists of wan-br, but I get error with "Exception: no bridge named w"The 
code sample is bellowimport ryu.lib.ovs.vsctl as ovs_vsctlvsctl = 
ovs_vsctl.VSCtl("tcp:192.168.31.200:6634")cmd = 
ovs_vsctl.VSCtlCommand('list-ports',('wan-br'))vsctl.run_command([cmd])print 
cmd.resultDoes it mean that ryu does not support bridge name with '-'?Thank you!

Zhao Jun                                          

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to