Differences From Artifact [c15e09c135]:
- Executable file vws — part of check-in [daa18d8131] at 2015-12-18 05:26:38 on branch trunk — Added try-finally to the vws command execution. Fixes [5a1bd05199] (user: vitus, size: 22585) [annotate] [blame] [check-ins using]
To Artifact [394f213744]:
- Executable file vws — part of check-in [155c39c9b5] at 2015-12-18 08:32:37 on branch trunk — Added function list_briges which disappeared somewhere when create command was incorporated in vws script (user: vitus, size: 22855) [annotate] [blame] [check-ins using]
| ︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | + + + + + + + + + + + + + + + + + + |
url=line[n+9:]
if url.startswith('*:'):
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):
print spiceurl(options)
|
| ︙ |