def main_flows(size, flavor, opt): if opt == "all": ext = True subspace = True island = False elif opt == "ext": ext = True subspace = False island = False elif opt == "subspace": ext = False subspace = True island = False # elif opt == "island": # ext = False # subspace = False # island = True else: ext = False subspace = False island = False per_flow = lambda topology,policy, use_extension, use_subspace, use_island:\ update_lib.per_flow_update(topology,policy,60,lambda pattern:pattern,300, ext, subspace, island) main_run(per_flow, int(flavor) - 1, ext, subspace, island, size)
def main_flows(): per_flow = lambda topology,policy: update_lib.per_flow_update(topology,policy,60,lambda pattern:pattern,300) version1_cont = all_done version0_cont = mk_cb(lambda:run_version(1, version1_cont, per_flow)) run_version(0,version0_cont, per_flow)
def main_flows(): per_flow = lambda topology,policy: update_lib.per_flow_update(topology,policy,60,lambda pattern:pattern,300) main_run(per_flow)
def main_flows(): per_flow = lambda topology, policy: update_lib.per_flow_update( topology, policy, 60, lambda pattern: pattern, 300) main_run(per_flow)