NSX-v3: Remove unused lbaas utils method
The method get_lb_router_id is not in use Change-Id: I9a526c4d8c81b808306ff9f93bf38c112dd56e5d
This commit is contained in:
parent
527eca9f73
commit
c688beed08
@ -20,7 +20,6 @@ from neutron_lib import exceptions as n_exc
|
||||
from vmware_nsx._i18n import _
|
||||
from vmware_nsx.db import db as nsx_db
|
||||
from vmware_nsx.services.lbaas import lb_const
|
||||
from vmware_nsxlib.v3 import utils
|
||||
|
||||
|
||||
def get_tags(plugin, resource_id, resource_type, project_id, project_name):
|
||||
@ -50,16 +49,6 @@ def get_router_from_network(context, plugin, subnet_id):
|
||||
return router['id']
|
||||
|
||||
|
||||
def get_lb_router_id(context, plugin, lb):
|
||||
router_client = plugin.nsxlib.logical_router
|
||||
name = utils.get_name_and_uuid(lb.name or 'router', lb.id)
|
||||
tags = get_tags(plugin, lb.id, lb_const.LB_LB_TYPE, lb.tenant_id,
|
||||
context.project_name)
|
||||
edge_cluster_uuid = plugin._get_edge_cluster(plugin._default_tier0_router)
|
||||
lb_router = router_client.create(name, tags, edge_cluster_uuid)
|
||||
return lb_router
|
||||
|
||||
|
||||
def get_lb_flavor_size(flavor_plugin, context, flavor_id):
|
||||
if not flavor_id:
|
||||
return lb_const.DEFAULT_LB_SIZE
|
||||
|
Loading…
x
Reference in New Issue
Block a user