def METHOD_NAME(vm_base):
    with open('topo.yaml') as fp:
        data = yaml.load(fp)
    base = int(vm_base.replace("VM", ""))
    vm_name_fmt = 'VM%0{}d'.format(len(vm_base) - 2)
    vm_ports = {v['vm_offset']: v['vlans']
                for v in data['topology']['VMs'].values()}
    vm_list = [vm_name_fmt % (base + p) for p in sorted(vm_ports.keys())]
    return vm_ports, vm_list