Stop notifications from old leases
* Fixes performance issue with lots of instances * Also removes some commented out code * Fixes bug 959356 Change-Id: I6e4cf3cd6ebe9d5d1ae4fc2472ef1765d13f49f6
This commit is contained in:
parent
74aa84b0ec
commit
4071161f38
@ -63,9 +63,11 @@ def add_lease(mac, ip_address):
|
||||
|
||||
|
||||
def old_lease(mac, ip_address):
|
||||
"""Update just as add lease."""
|
||||
LOG.debug(_("Adopted old lease or got a change of mac"))
|
||||
add_lease(mac, ip_address)
|
||||
"""Called when an old lease is recognized."""
|
||||
# NOTE(vish): We assume we heard about this lease the first time.
|
||||
# If not, we will get it the next time the lease is
|
||||
# renewed.
|
||||
pass
|
||||
|
||||
|
||||
def del_lease(mac, ip_address):
|
||||
@ -100,12 +102,6 @@ def main():
|
||||
if int(os.environ.get('TESTING', '0')):
|
||||
from nova.tests import fake_flags
|
||||
|
||||
#if FLAGS.fake_rabbit:
|
||||
# LOG.debug(_("leasing ip"))
|
||||
# network_manager = utils.import_object(FLAGS.network_manager)
|
||||
## reload(fake_flags)
|
||||
# from nova.tests import fake_flags
|
||||
|
||||
action = argv[1]
|
||||
if action in ['add', 'del', 'old']:
|
||||
mac = argv[2]
|
||||
|
Loading…
Reference in New Issue
Block a user