~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to bin/nova-dhcpbridge

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya
  • Date: 2010-08-14 21:13:44 UTC
  • mfrom: (198.4.31 network-refactor)
  • Revision ID: hudson@openstack.org-20100814211344-hqv3g8zfnf22251b
Improves pep8 compliance and pylint score in network code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
 
58
58
def del_lease(_mac, ip, _hostname, _interface):
59
 
    """Remove the leased IP from the databases."""
 
59
    """Called when a lease expires."""
60
60
    if FLAGS.fake_rabbit:
61
61
        service.VlanNetworkService().release_ip(ip)
62
62
    else:
70
70
    net = model.get_network_by_interface(interface)
71
71
    res = ""
72
72
    for host_name in net.hosts:
73
 
        res += "%s\n" % linux_net.hostDHCP(net, host_name,
74
 
                                           net.hosts[host_name])
 
73
        res += "%s\n" % linux_net.host_dhcp(net,
 
74
                                            host_name,
 
75
                                            net.hosts[host_name])
75
76
    return res
76
77
 
77
78