Beispiel #1
0
def xm_get_mac(vmid):
	out = OutputBuffer()
	stdout_old = sys.stdout
	sys.stdout = out
	args = [str(vmid)]
	main._run_cmd(main.xm_network_list, 'network-list', args)
	sys.stdout = stdout_old
	return xm_parse_mac(out)
Beispiel #2
0
def xm_get_doms():
	out = OutputBuffer()
	stdout_old = sys.stdout
	sys.stdout = out
	args = []
	main._run_cmd(main.xm_list, 'list', args)
	sys.stdout = stdout_old
	return out