Forum Discussion
mhite_60883
Jan 24, 2012Cirrocumulus
Ok, just some poking around... but does this look like I'm on the right track? Every item I have in wsdl_list has a separate suds client setup for it, correct? (Sorry, I know very little about the suds library). So I need to apply the set_options to each one of those clients, ie.
b = f5_build_bigip_object(ltm, user, pw, wsdl_list, soap_debug=False)
Get F5 session id
print "Requesting session identifier..."
try:
sid = f5_get_session_identifier(b)
for client in b.clients:
client.set_options(headers={'X-iControl-Session': sid})
except Exception, detail:
print "Unable to request session identifier."
else:
print "Session identifier %s received." % sid