components/openstack/neutron/files/agent/solaris/dhcp.py
branchs11u2-sru
changeset 3201 6839f7d1f036
parent 3178 77584387a894
child 3524 ad6a9e0880b9
child 3619 639868f63ef4
--- a/components/openstack/neutron/files/agent/solaris/dhcp.py	Wed Jul 02 06:53:43 2014 -0700
+++ b/components/openstack/neutron/files/agent/solaris/dhcp.py	Wed Jul 09 15:10:27 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."""