network tests pass again

This commit is contained in:
Vishvananda Ishaya
2010-08-25 16:44:10 -07:00
parent 3db2386701
commit 1a009f7e1c
4 changed files with 80 additions and 83 deletions

View File

@@ -46,10 +46,6 @@ def add_lease(_mac, ip_address, _hostname, _interface):
"""Set the IP that was assigned by the DHCP server."""
if FLAGS.fake_rabbit:
logging.debug("leasing ip")
from nova import models
print models.FixedIp.count()
print models.Network.count()
print FLAGS.sql_connection
service.VlanNetworkService().lease_fixed_ip(ip_address)
else:
rpc.cast("%s.%s" % (FLAGS.network_topic, FLAGS.node_name),