def setAttributes(self, objRef, **attributes): string_attributes = {} for attribute, value in attributes.items(): string_attributes[attribute] = py_list_to_tcl_list( value) if type(value) is list else value self.ixnCommand('setMultiAttribute', tcl_str(objRef), get_args_pairs(string_attributes))
def getAttribute(self, objRef, attribute): """ Get current value of the requested attribute. """ return self.ixnCommand('getAttribute', tcl_str(objRef), '-' + attribute)
def stopStatelessTraffic(self, traffic, *traffic_items): self.execute('stopStatelessTraffic', None, True, tcl_str(build_obj_ref_list(*traffic_items)))
def regenerate(self, traffic, *traffic_items): if traffic_items: self.execute('generate', None, True, tcl_str(build_obj_ref_list(*traffic_items)))