Fixes for cord vtn test module, also fixes
cord tester list command output.
Change-Id: Ie49166a08986d6ce266831a888a64f140d1619d9
diff --git a/src/test/cordvtn/cordvtnTest.py b/src/test/cordvtn/cordvtnTest.py
index 65525ee..ab7853c 100644
--- a/src/test/cordvtn/cordvtnTest.py
+++ b/src/test/cordvtn/cordvtnTest.py
@@ -294,14 +294,14 @@
lis = output.split("\n")
for i in lis:
tokens = i.split()
- if len(tokens)>3 an tokens[3] == name:
+ if len(tokens)>3 and tokens[3] == name:
return tokens[1]
return none
@classmethod
def nova_boot(tenant_id, name, netid=None, portid=None):
if netid:
- cmd = "nova --os-tenant-id %s boot --flavor 1 --image %s --nic net-id=%s %s",%(tenant_id, vm_image_id,netid,name)
+ cmd = "nova --os-tenant-id %s boot --flavor 1 --image %s --nic net-id=%s %s"%(tenant_id, vm_image_id,netid,name)
if portid:
cmd = "nova --os-tenant-is %s boot --flavor 1 --image %s --nic port-id=%s %s"%(tenant_id,vm_image_id,portid,name)
os.system(cmd)
@@ -324,7 +324,7 @@
if len(toks) >= 5 and toks[3] == name and toks[5] == state:
return
time.sleep(5)
- errno=1
+ errno=1
@classmethod
def port_delete(sdn_tenant_id,name):