Esempio n. 1
0
def clos_per_vm_gen(config):

    clos_per_vm = {}
    clos_per_vm = common.get_leaf_tag_map(
            common.SCENARIO_INFO_FILE, "clos", "vcpu_clos")
    for i,clos_list_i in clos_per_vm.items():
        clos_config = scenario_cfg_lib.clos_assignment(clos_per_vm, i)
        print("#define VM{0}_VCPU_CLOS\t\t\t{1}".format(i, clos_config['clos_map']), file=config)
Esempio n. 2
0
 def get_clos_bitmap(self, index):
     """
     :param index: index list in GUESF_FLAGS
     :return: clos per vm and their vm id
     """
     return scenario_cfg_lib.clos_assignment(self.clos_per_vm, index)