88
89
"""Get the list of hosts for a network."""
89
90
ctxt = context.get_admin_context()
90
91
network_ref = db.network_get(ctxt, network_id)
92
93
return network_manager.get_dhcp_leases(ctxt, network_ref)
96
97
"""Parse environment and arguments and call the approproate action."""
97
98
flagfile = os.environ.get('FLAGFILE', FLAGS.dhcpbridge_flagfile)
102
105
if int(os.environ.get('TESTING', '0')):
103
106
from nova.tests import fake_flags