summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2011-06-27 17:07:21 -0500
committerTrey Morris <trey.morris@rackspace.com>2011-06-27 17:07:21 -0500
commitb699b9abd235eb611bc1d59b923f1ed83f96cfff (patch)
treebc354fa40903cdcccd436d680c2352a82b35dd3c /bin
parent0a2c2e0975c3037372b47b09a7f547eb197ef7d7 (diff)
removed unneded mac parameter to lease and release fixed ip functions
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-dhcpbridge8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge
index 5926b97de..6d9d85896 100755
--- a/bin/nova-dhcpbridge
+++ b/bin/nova-dhcpbridge
@@ -59,14 +59,12 @@ def add_lease(mac, ip_address, _hostname, _interface):
LOG.debug(_("leasing ip"))
network_manager = utils.import_object(FLAGS.network_manager)
network_manager.lease_fixed_ip(context.get_admin_context(),
- mac,
ip_address)
else:
rpc.cast(context.get_admin_context(),
"%s.%s" % (FLAGS.network_topic, FLAGS.host),
{"method": "lease_fixed_ip",
- "args": {"mac": mac,
- "address": ip_address}})
+ "args": {"address": ip_address}})
def old_lease(mac, ip_address, hostname, interface):
@@ -81,14 +79,12 @@ def del_lease(mac, ip_address, _hostname, _interface):
LOG.debug(_("releasing ip"))
network_manager = utils.import_object(FLAGS.network_manager)
network_manager.release_fixed_ip(context.get_admin_context(),
- mac,
ip_address)
else:
rpc.cast(context.get_admin_context(),
"%s.%s" % (FLAGS.network_topic, FLAGS.host),
{"method": "release_fixed_ip",
- "args": {"mac": mac,
- "address": ip_address}})
+ "args": {"address": ip_address}})
def init_leases(interface):