From 3b0f140c0ac7cf4ad457d51c86c91b9f15ff816a Mon Sep 17 00:00:00 2001
From: Adit Sarfaty <asarfaty@vmware.com>
Date: Mon, 23 Oct 2017 13:55:19 +0300
Subject: [PATCH] NSX|V remove warning on no dhcp edge

When deleting a network, the plugin delets the rotuer binding entry
before deleting the dhcp port.
So we should not log a warning about not finding the dhcp edge.

Change-Id: I7a58a6789d59055ce1782c987bd359756b8bc16b
---
 vmware_nsx/plugins/nsx_v/vshield/edge_utils.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py b/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py
index a94b0cdfb8..656ef9f3d9 100644
--- a/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py
+++ b/vmware_nsx/plugins/nsx_v/vshield/edge_utils.py
@@ -1861,9 +1861,9 @@ class EdgeManager(object):
                             {'edge_id': edge_id,
                              'port_id': port_id})
         else:
-            LOG.warning("Failed to find edge_id to delete dhcp "
-                        "binding for port %(port_id)s",
-                        {'port_id': port_id})
+            # This happens during network/subnet deletion
+            LOG.info("Didn't delete dhcp binding for port %(port_id)s: "
+                     "No edge id", {'port_id': port_id})
 
     @vcns.retry_upon_exception(nsxapi_exc.VcnsApiException, max_delay=10)
     def _create_dhcp_binding(self, context, edge_id, binding):