Browse Source

Replace neutron.common.rpc.create_connection calls

The code is still relying on neutron.common.rpc.create_connection,
which has recently been removed [1]. Replacing that with a call
to the Connection constructor, which has the same effect.

[1] https://review.openstack.org/560130

Change-Id: I7d349f7389ba88c2331cdfa9a9c6c4cbc2fab75b
Closes-Bug: 1777919
Stefan Nica 10 months ago
parent
commit
673e0d9f45
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      networking_vsphere/ml2/ovsvapp_mech_driver.py

+ 1
- 1
networking_vsphere/ml2/ovsvapp_mech_driver.py View File

@@ -93,7 +93,7 @@ class OVSvAppAgentMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase):
93 93
                           ovsvapp_rpc.OVSvAppSecurityGroupServerRpcCallback(
94 94
                           self.ovsvapp_sg_server_rpc)]
95 95
         self.topic = ovsvapp_const.OVSVAPP
96
-        self.conn = n_rpc.create_connection()
96
+        self.conn = n_rpc.Connection()
97 97
         self.conn.create_consumer(self.topic, self.endpoints, fanout=False)
98 98
         return self.conn.consume_in_threads()
99 99
 

Loading…
Cancel
Save