def test_dmz_exists(): uuid, name = xenhelpers.xe_find('network', DMZ_NETWORK) # xe_uuid will fail if there are more than one results. print('Found network "%s" (%s)' % (name, uuid), file=sys.stderr) return uuid
def test_vm_exists(vm): uuid, name = xenhelpers.xe_find('vm', vm) # xe_uuid will fail if there are more than one results. print('Found VM "%s" (%s)' % (name, uuid), file=sys.stderr) return uuid, name