Currently I am doing
results = swis.query(sql_query)
in order to populate a list of nodes depending on which SWQL query I am using. I suppose I don't fully understand the syntax, but I am looping through this list by doing:
for x in xrange(10000): uri = results['results'][x][IP_Address] swis.update(....)
I would like to have a better way to iterate through this list, but I don't fully understand how the list is generated and what results['results'][x][IP_Address] is doing. I'd like some help understanding this further in order to hopefully come up with a cleaner way to iterate through the results list.