Пример #1
0
 def create_rpc_conn(self):
     self.endpoints = [base_ipsec.IPsecVpnDriverCallBack(self)]
     self.conn = n_rpc.create_connection(new=True)
     self.conn.create_consumer(
         topics.BROCADE_IPSEC_DRIVER_TOPIC, self.endpoints, fanout=False)
     self.conn.consume_in_threads()
     self.agent_rpc = base_ipsec.IPsecVpnAgentApi(
         topics.BROCADE_IPSEC_AGENT_TOPIC, BASE_IPSEC_VERSION, self)
Пример #2
0
 def create_rpc_conn(self):
     self.endpoints = [base_ipsec.IPsecVpnDriverCallBack(self)]
     self.conn = n_rpc.Connection()
     self.conn.create_consumer('dummy_ipsec_driver',
                               self.endpoints,
                               fanout=False)
     self.conn.consume_in_threads()
     self.agent_rpc = base_ipsec.IPsecVpnAgentApi('dummy_ipsec_agent',
                                                  BASE_IPSEC_VERSION, self)
Пример #3
0
 def create_rpc_conn(self):
     self.endpoints = [base_ipsec.IPsecVpnDriverCallBack(self)]
     self.conn = n_rpc.create_connection(new=True)
     self.conn.create_consumer(
         topics.IPSEC_DRIVER_TOPIC, self.endpoints, fanout=False)
     self.conn.consume_in_threads()
     self.agent_rpc = base_ipsec.IPsecVpnAgentApi(
         topics.IPSEC_AGENT_TOPIC, BASE_IPSEC_VERSION, self)
     # We have a different device driver with topic topics.PPTP_AGENT_TOPIC
     # so we need to create another rpc agent with this topic to send msg
     # to the device driver.
     #pptp agent rpc
     self.pptp_agent_rpc = base_ipsec.IPsecVpnAgentApi(
         topics.PPTP_AGENT_TOPIC, BASE_IPSEC_VERSION, self)
     #openvpn agent rpc
     self.openvpn_agent_rpc= base_ipsec.IPsecVpnAgentApi(
         topics.OPENVPN_AGENT_TOPIC,BASE_IPSEC_VERSION,self)