Hi,
I have a for loop something like:
for n in range(no_of_rows):
#--configuring ODU Op mode
odu_op_mod=list1[n]
odu_op_mode= odu_enum["%s"%odu_op_mod]
if (odu_op_mod == 'blahblah'):
#------------
elif(odu_op_mod == 'aaa'):
#--------
elif(odu_op_mode =='xxx'):
#-----
elif(odu_op_mod == 'yyy'):
#-------------------
elif(odu_op_mod == 'zzz'):
#-------------
logging.info("*******************************************************************")
subprocess.call(['python link_config_idu12.py %s'%addr],shell=True)
I have different lists, list1 #for some mode, list2 #for some mode, i want the first item in list1 to be set followed by first item in list2 and so on.. that is why I am trying a subprocess.call() within the for loop as shown above. But, i see that what i expect is not happening. First all the elements in list1 is getting set, then all the elements in list2 and so on..
where am I going wrong??? please help me out