filter the dhcp to only respond to requests from this host

This commit is contained in:
Vishvananda Ishaya
2011-07-05 16:06:20 -07:00
parent d5086b785d
commit e540ecb710

View File

@@ -91,7 +91,7 @@ def init_leases(interface):
"""Get the list of hosts for an interface."""
ctxt = context.get_admin_context()
network_ref = db.network_get_by_bridge(ctxt, interface)
return linux_net.get_dhcp_leases(ctxt, network_ref['id'])
return linux_net.get_dhcp_leases(ctxt, network_ref)
def main():