view
____________________________________- My problem is, the method im passing to only likes 1 value for each variable. If grabifcfg comes back with more then one value, and i enter my loop, now im passing passtest multiple values for each var: ifedit_addr ['10.110.0.110', '10.110.0.111', '10.110.0.112', '10.110.0.113'] ifedit_mask ['255.255.0.0', '255.255.0.0', '255.255.0.0', '255.255.0.0'] Rather then passing it multiple values, how do i run it once time for each iteration, rather then trying to cram all values into one pass. ______________- # Import a standard function, and get the HTML request and response objects. from Products.PythonScripts.standard import html_quote request = container.REQUEST RESPONSE = request.RESPONSE meh_id = (ifedit_id) for i in range(0, len(meh_id)): print ifedit_id[i] print ifedit_iface[i] print ifedit_bcast[i] print ifedit_hwaddy[i] print ifedit_addr[i] print ifedit_mask[i] context.if_update(ifedit_id=ifedit_id[i], ifedit_iface=ifedit_iface[i],ifedit_bcast=ifedit_bcast[i],ifedit_hwaddy=ifedit_hwaddy[i],ifedit_addr=ifedit_addr[i],ifedit_mask=ifedit_mask[i]) return printed
if addr bcast mask hwaddy