diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-08-11 01:20:21 -0700 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-08-11 01:20:21 -0700 |
commit | 24f8cb89f8b92563d364186b80c7d73d28b26bea (patch) | |
tree | fa52f20a72f75b8f6b03a006f88276b761f21ed0 /bin | |
parent | 0ccd10283b922cb9822872b89713aad1a5da214e (diff) | |
download | nova-24f8cb89f8b92563d364186b80c7d73d28b26bea.tar.gz nova-24f8cb89f8b92563d364186b80c7d73d28b26bea.tar.xz nova-24f8cb89f8b92563d364186b80c7d73d28b26bea.zip |
Actually pass in hostname and create a proper model for data in network code
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/nova-dhcpbridge | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge index 0dac2672a..b1ad1c8fe 100755 --- a/bin/nova-dhcpbridge +++ b/bin/nova-dhcpbridge @@ -69,8 +69,8 @@ def init_leases(interface): """Get the list of hosts for an interface.""" net = model.get_network_by_interface(interface) res = "" - for fixed_ip in net.hosts: - res += "%s\n" % linux_net.host_dhcp(fixed_ip, net.hosts[fixed_ip]) + for address in net.address_objs: + res += "%s\n" % linux_net.host_dhcp(address) return res |