|
17 | 17 | import datetime |
18 | 18 | import json |
19 | 19 |
|
20 | | -from neutron_lbaas.common import keystone |
21 | 20 | from oslo_config import cfg |
22 | 21 | from oslo_log import helpers as log_helpers |
23 | 22 | from oslo_log import log as logging |
|
26 | 25 | from f5lbaasdriver.v2.bigip.disconnected_service import DisconnectedService |
27 | 26 | from f5lbaasdriver.v2.bigip import exceptions as f5_exc |
28 | 27 | from f5lbaasdriver.v2.bigip import neutron_client as q_client |
29 | | -from keystoneclient.v3 import client |
30 | 28 |
|
31 | 29 | LOG = logging.getLogger(__name__) |
32 | 30 |
|
@@ -74,11 +72,6 @@ def build(self, context, loadbalancer, agent, **kwargs): |
74 | 72 | loadbalancer |
75 | 73 | ) |
76 | 74 |
|
77 | | - service['qos'] = self._get_extended_qos( |
78 | | - context, |
79 | | - loadbalancer |
80 | | - ) |
81 | | - |
82 | 75 | # Get the subnet network associated with the VIP. |
83 | 76 | subnet_map = {} |
84 | 77 | subnet_id = loadbalancer.vip_subnet_id |
@@ -248,18 +241,6 @@ def _get_extended_member(self, context, member): |
248 | 241 |
|
249 | 242 | return (member_dict, subnet, network) |
250 | 243 |
|
251 | | - @log_helpers.log_method_call |
252 | | - def _get_extended_qos(self, context, loadbalancer): |
253 | | - try: |
254 | | - sess = keystone.get_session() |
255 | | - client_sess = client.Client(session=sess) |
256 | | - project = client_sess.projects.get(project=loadbalancer.tenant_id) |
257 | | - return project.qos |
258 | | - |
259 | | - except Exception as e: |
260 | | - LOG.warning('Exception: Get keystone project: %s', e.message) |
261 | | - return '' |
262 | | - |
263 | 244 | @log_helpers.log_method_call |
264 | 245 | def _get_extended_loadbalancer(self, context, loadbalancer): |
265 | 246 | """Get loadbalancer dictionary and add extended data(e.g. VIP).""" |
|
0 commit comments