def __init__(self, server): super(RemoteCall, self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) # there is no need to run this container main, so don't append it # self.routines.append(self.app_routine) self.wc = WebClient() self.app_routine.main = self._main self.routines.append(self.app_routine) self.createAPI(api(self.call, self.app_routine))
def __init__(self,server): super(VXLANVtep,self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) self.app_routine.main = self._main self.routines.append(self.app_routine) self.conns = {} self.vxlan_vlan_map_info = {} self.createAPI(publicapi(self.createioflowparts, self.app_routine, lambda connection,logicalnetwork,**kwargs: _is_vxlan(logicalnetwork)), api(self.get_vxlan_bind_info,self.app_routine))
def setUp(self): self.server = Server() self.rc = RoutineContainer(self.server.scheduler)