Skip to content

Commit

Permalink
Remove messages from ipam_alloc_notify, ipam_alloc_req
Browse files Browse the repository at this point in the history
as its possible that flat-subnet not configured and user gets ip-address
from user-defined subnet
Closes-Bug: #1648660

Change-Id: Ifde8e92cfa896296fd24dcb484467c5f0cd182c9
  • Loading branch information
moghea committed Dec 9, 2016
1 parent 2da33d2 commit 7d53da4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/config/api-server/vnc_addr_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,8 +1439,6 @@ def _ipam_ip_alloc_notify(self, ip_addr, vn_uuid):
ip_addr = subnet_obj.ip_set_in_use(ipaddr=ip_addr)
return True

db_conn.config_log("Error: %s ip address not found" %(ip_addr),
level=SandeshLevel.SYS_ERR)
return False
# end _ipam_ip_alloc_notify

Expand Down Expand Up @@ -1501,8 +1499,6 @@ def _ipam_ip_free_req(self, ip_addr, vn_uuid, sub=None):
if subnet_obj.ip_belongs(ip_addr):
subnet_obj.ip_free(IPAddress(ip_addr))
return True
db_conn.config_log("Error: %s ip address not found" %(ip_addr),
level=SandeshLevel.SYS_ERR)
return False
# end _ipam_ip_free_req

Expand Down Expand Up @@ -1601,8 +1597,6 @@ def _ipam_ip_free_notify(self, ip_addr, vn_uuid):
subnet_obj.ip_reset_in_use(ip_addr)
return True

db_conn.config_log("Error: %s ip address not found" %(ip_addr),
level=SandeshLevel.SYS_ERR)
return False
# end _ipam_ip_free_notify

Expand Down

0 comments on commit 7d53da4

Please sign in to comment.