Index: vws ================================================================== --- vws +++ vws @@ -65,10 +65,28 @@ url="localhost"+url[1:] if url is None: return None return "spice://"+url.rstrip('\r') + + +def list_bridges(): + lst=[] + with os.popen("/sbin/brctl show", "r") as f: + for line in f: + n = line.find('\t'); + if n <= 0: + continue + name = line[:n] + if name == "bridge name": + continue + lst.append(name) + return lst + + +print repr(list_bridges()) + # # command implementation # def cmd_spiceuri(options):