]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove ununsed method update_providers
authorAaron Rosen <arosen@nicira.com>
Fri, 20 Sep 2013 20:09:01 +0000 (13:09 -0700)
committerAaron Rosen <arosen@nicira.com>
Fri, 20 Sep 2013 20:10:58 +0000 (13:10 -0700)
Fixes bug: 1228370

Change-Id: Ie9182718dc87217c05d8f0d4d1a10bb538cfb8cc

neutron/plugins/nicira/api_client/client.py

index d1f478d5aed8f9ff67e51caf303ac29d2e7d220a..01a068f77e6e79905e398c6aa263210855a62c5f 100644 (file)
@@ -257,26 +257,3 @@ class NvpApiClient(object):
         if port is None:
             port = 443 if is_ssl else 80
         return (host, port, is_ssl)
-
-    def update_providers(self, api_providers):
-        new_providers = set([tuple(p) for p in api_providers])
-        if new_providers != self._api_providers:
-            new_conns = []
-            while not self._conn_pool.empty():
-                priority, conn = self._conn_pool.get_nowait()
-                if self._conn_params(conn) in new_providers:
-                    new_conns.append((priority, conn))
-
-            to_subtract = self._api_providers - new_providers
-            for p in to_subtract:
-                self._set_provider_data(p, None)
-            to_add = new_providers - self._api_providers
-            for unused_i in range(self._concurrent_connections):
-                for host, port, is_ssl in to_add:
-                    conn = self._create_connection(host, port, is_ssl)
-                    new_conns.append((self._next_conn_priority, conn))
-                    self._next_conn_priority += 1
-
-            for priority, conn in new_conns:
-                self._conn_pool.put((priority, conn))
-            self._api_providers = new_providers