Skip to content

Commit 2ba27db

Browse files
Gaurav AradhyeGirish Shilamkar
authored andcommitted
CLOUDSTACK 2233: Automation test cases for Add Remove Networks to VM
Signed-off-by: Girish Shilamkar <girish@clogeny.com>
1 parent 6227ba6 commit 2ba27db

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎tools/marvin/marvin/integration/lib/base.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,15 @@ def detach_volume(self, apiclient, volume):
530530
cmd.id = volume.id
531531
return apiclient.detachVolume(cmd)
532532

533-
def add_nic(self, apiclient, networkId):
533+
def add_nic(self, apiclient, networkId, ipaddress=None):
534534
"""Add a NIC to a VM"""
535535
cmd = addNicToVirtualMachine.addNicToVirtualMachineCmd()
536536
cmd.virtualmachineid = self.id
537537
cmd.networkid = networkId
538+
539+
if ipaddress:
540+
cmd.ipaddress = ipaddress
541+
538542
return apiclient.addNicToVirtualMachine(cmd)
539543

540544
def remove_nic(self, apiclient, nicId):

‎tools/marvin/setup.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def read(fname):
5151
"mysql-connector-python",
5252
"requests",
5353
"paramiko",
54-
"nose"
54+
"nose",
55+
"ddt >= 0.4.0"
5556
],
5657
py_modules=['marvin.marvinPlugin'],
5758
zip_safe=False,

0 commit comments

Comments
 (0)