Exemple #1
0
 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))
Exemple #2
0
 def getAttribute(self, objRef, attribute):
     """ Get current value of the requested attribute. """
     return self.ixnCommand('getAttribute', tcl_str(objRef), '-' + attribute)
Exemple #3
0
 def stopStatelessTraffic(self, traffic, *traffic_items):
     self.execute('stopStatelessTraffic', None, True, tcl_str(build_obj_ref_list(*traffic_items)))
Exemple #4
0
 def regenerate(self, traffic, *traffic_items):
     if traffic_items:
         self.execute('generate', None, True, tcl_str(build_obj_ref_list(*traffic_items)))