def getOpenFlowClientFactory(self): f = ClientFactory() f.protocol = OpenFlowClientProtocol f.add_controllerConnection = self.add_controllerConnection f.handle_controller_openflow_msg = self.handle_controller_openflow_msg f.remove_controllerConnection = self.remove_controllerConnection return f
def getOpenFlowClientFactory(self, switchConn): f = ClientFactory() f.protocol = OpenFlowClientProtocol f.switchConn = switchConn f.add_controllerConnection = self.add_controllerConnection f.handle_controller_openflow_msg = self.handle_controller_openflow_msg f.remove_controllerConnection = self.remove_controllerConnection f.ofmsg_generator = self.ofmsg_generator return f