diff options
author | Eric Day <eday@oddments.org> | 2010-08-18 17:39:12 -0700 |
---|---|---|
committer | Eric Day <eday@oddments.org> | 2010-08-18 17:39:12 -0700 |
commit | b8747fb38eb1234744cdda85cb20bd27cd7fa9e8 (patch) | |
tree | 193749cb5ac509690855640d6c3a716c0a0f3c02 /bin/nova-dhcpbridge | |
parent | 663667cdcf1bd16be33dc9b993123b7fc566caed (diff) | |
download | nova-b8747fb38eb1234744cdda85cb20bd27cd7fa9e8.tar.gz nova-b8747fb38eb1234744cdda85cb20bd27cd7fa9e8.tar.xz nova-b8747fb38eb1234744cdda85cb20bd27cd7fa9e8.zip |
More bin/ pep8/pylint cleanup.
Diffstat (limited to 'bin/nova-dhcpbridge')
-rwxr-xr-x | bin/nova-dhcpbridge | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge index f70a4482c..1f2ed4f89 100755 --- a/bin/nova-dhcpbridge +++ b/bin/nova-dhcpbridge @@ -40,29 +40,29 @@ from nova.network import service FLAGS = flags.FLAGS -def add_lease(_mac, ip, _hostname, _interface): +def add_lease(_mac, ip_address, _hostname, _interface): """Set the IP that was assigned by the DHCP server.""" if FLAGS.fake_rabbit: - service.VlanNetworkService().lease_ip(ip) + service.VlanNetworkService().lease_ip(ip_address) else: rpc.cast("%s.%s" % (FLAGS.network_topic, FLAGS.node_name), {"method": "lease_ip", - "args": {"fixed_ip": ip}}) + "args": {"fixed_ip": ip_address}}) -def old_lease(_mac, _ip, _hostname, _interface): +def old_lease(_mac, _ip_address, _hostname, _interface): """Do nothing, just an old lease update.""" logging.debug("Adopted old lease or got a change of mac/hostname") -def del_lease(_mac, ip, _hostname, _interface): +def del_lease(_mac, ip_address, _hostname, _interface): """Called when a lease expires.""" if FLAGS.fake_rabbit: - service.VlanNetworkService().release_ip(ip) + service.VlanNetworkService().release_ip(ip_address) else: rpc.cast("%s.%s" % (FLAGS.network_topic, FLAGS.node_name), {"method": "release_ip", - "args": {"fixed_ip": ip}}) + "args": {"fixed_ip": ip_address}}) def init_leases(interface): |