Example #1
0
 def buildControllerList(self):
     # controller_list is list of ip/port tuples
     partial_list = test_param_get('controller_list')
     logging.debug("ctrl list: " + str(partial_list))
     self.controller_list = [(config["controller_host"],
                              config["controller_port"])]
     if partial_list is not None:
         for controller in partial_list:
             ip,portstr = controller.split(':')
             try:
                 port = int(portstr)
             except:
                 self.assertTrue(0, "failure converting port " + 
                                 portstr + " to integer")
             self.controller_list.append( (ip, int(port)) )
Example #2
0
 def buildControllerList(self):                                             
     # controller_list is a list of IP:port tuples
     con_list = test_param_get('controller_list')
     if con_list is not None:
         self.controller_list = []
         for controller in con_list:
             ip,portstr = controller.split(':')
             try:
                 port = int(portstr)
             except:
                 self.assertTrue(0, "failure converting port " +
                                 portstr + " to integer")
             self.controller_list.append( (ip, int(port)) )
     else:
         self.controller_list = [(config["controller_host"],
                                  config["controller_port"])]
Example #3
0
 def buildControllerList(self):
     # controller_list is list of ip/port tuples
     partial_list = test_param_get('controller_list')
     logging.debug("ctrl list: " + str(partial_list))
     self.controller_list = [(config["controller_host"],
                              config["controller_port"])]
     if partial_list is not None:
         for controller in partial_list:
             ip, portstr = controller.split(':')
             try:
                 port = int(portstr)
             except:
                 self.assertTrue(
                     0,
                     "failure converting port " + portstr + " to integer")
             self.controller_list.append((ip, int(port)))
Example #4
0
 def buildControllerList(self):
     # controller_list is a list of IP:port tuples
     con_list = test_param_get('controller_list')
     if con_list is not None:
         self.controller_list = []
         for controller in con_list:
             ip, portstr = controller.split(':')
             try:
                 port = int(portstr)
             except:
                 self.assertTrue(
                     0,
                     "failure converting port " + portstr + " to integer")
             self.controller_list.append((ip, int(port)))
     else:
         self.controller_list = [(config["controller_host"],
                                  config["controller_port"])]