summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2010-08-14 21:13:44 +0000
committerTarmac <>2010-08-14 21:13:44 +0000
commit8d6a1256aef713138ff706bb7b542dc32598db84 (patch)
tree64d4687a162d211b40bc18eedf86871e02cdf01d /bin
parenta947cc3ee5ff960ce8308dc615106c5f0c637a9a (diff)
parent47bf3ed11f2f372a07ea3b1b8deb9f7684cc2e5d (diff)
downloadnova-8d6a1256aef713138ff706bb7b542dc32598db84.tar.gz
nova-8d6a1256aef713138ff706bb7b542dc32598db84.tar.xz
nova-8d6a1256aef713138ff706bb7b542dc32598db84.zip
Improves pep8 compliance and pylint score in network code.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-dhcpbridge7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge
index ed1af206a..6a9115fcb 100755
--- a/bin/nova-dhcpbridge
+++ b/bin/nova-dhcpbridge
@@ -56,7 +56,7 @@ def old_lease(_mac, _ip, _hostname, _interface):
def del_lease(_mac, ip, _hostname, _interface):
- """Remove the leased IP from the databases."""
+ """Called when a lease expires."""
if FLAGS.fake_rabbit:
service.VlanNetworkService().release_ip(ip)
else:
@@ -70,8 +70,9 @@ def init_leases(interface):
net = model.get_network_by_interface(interface)
res = ""
for host_name in net.hosts:
- res += "%s\n" % linux_net.hostDHCP(net, host_name,
- net.hosts[host_name])
+ res += "%s\n" % linux_net.host_dhcp(net,
+ host_name,
+ net.hosts[host_name])
return res