From c688beed084d740b1f26802e70b61ae8ac7afa9e Mon Sep 17 00:00:00 2001
From: Adit Sarfaty <asarfaty@vmware.com>
Date: Mon, 5 Mar 2018 13:44:14 +0200
Subject: [PATCH] NSX-v3: Remove unused lbaas utils method

The method get_lb_router_id is not in use

Change-Id: I9a526c4d8c81b808306ff9f93bf38c112dd56e5d
---
 vmware_nsx/services/lbaas/nsx_v3/lb_utils.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/vmware_nsx/services/lbaas/nsx_v3/lb_utils.py b/vmware_nsx/services/lbaas/nsx_v3/lb_utils.py
index 3f18923ecc..6b4d6c6228 100644
--- a/vmware_nsx/services/lbaas/nsx_v3/lb_utils.py
+++ b/vmware_nsx/services/lbaas/nsx_v3/lb_utils.py
@@ -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