components/openstack/neutron/files/agent/solaris/dhcp.py
changeset 1987 6fa18b7a0af6
parent 1944 56ac2df1785b
child 3524 ad6a9e0880b9
child 3619 639868f63ef4
--- a/components/openstack/neutron/files/agent/solaris/dhcp.py	Mon Jul 07 04:16:19 2014 -0700
+++ b/components/openstack/neutron/files/agent/solaris/dhcp.py	Mon Jul 07 13:15:12 2014 -0700
@@ -372,8 +372,11 @@
         utils.execute(cmd, self.root_helper)
 
     def release_lease(self, mac_address, removed_ips):
-        # TODO(gmoodalb): we need to support dnsmasq's dhcp_release
-        pass
+        """Release a DHCP lease."""
+        for ip in removed_ips or []:
+            cmd = ['/usr/lib/inet/dhcp_release', self.interface_name,
+                   ip, mac_address]
+            utils.execute(cmd, self.root_helper)
 
     def reload_allocations(self):
         """Rebuild the dnsmasq config and signal the dnsmasq to reload."""