Exemplo n.º 1
0
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
Exemplo n.º 2
0
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