def METHOD_NAME(vms):
    mapping = {}
    with open('veos') as fp:
        all = fp.read()
    rows = all.split('\n')
    for r in rows:
        r = r.strip()
        if r == '':
            continue
        if not r.startswith('VM'):
            continue
        name, ansible_host = r.split()
        if name not in vms:
            continue
        address = ansible_host.split('=')[1]
        mapping[name] = address
    return mapping