Forum Discussion
L4L7_53191
Oct 09, 2011Nimbostratus
Feedback request: pyControl v11 session support
Hi everyone: if you use pycontrol, I'd like your feedback on how you'd like session support implemented. As of right now I'm thinking about keeping it as simple as possible and exposing the internals ...
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects