Incorporated review comments provided in PR#183

This commit is contained in:
sanjeev 2015-04-22 15:14:52 +05:30
parent 0bae300fa2
commit 5b7527e2da

View File

@ -417,6 +417,12 @@ class TestBasicOperations(cloudstackTestCase):
None, None,
"Removing IP from nic didn't release the ip address from user_ip_address table" "Removing IP from nic didn't release the ip address from user_ip_address table"
) )
else:
qresultset = self.dbclient.execute(
"select id from nic_secondary_ips where ip4_address = '%s';"
% str(ipaddress_1.ipaddress))
if len(qresultset):
self.fail("Failed to release the secondary ip from the nic")
ipaddress_2 = NIC.addIp( ipaddress_2 = NIC.addIp(
self.apiclient, self.apiclient,
id=virtual_machine.nic[0].id, id=virtual_machine.nic[0].id,