Forum Discussion
how to explicitly logout of an icontrol session ?
gurus
I have a weird issue where I cannot create an iapp and set a description on its VIPs within the same session. Yet when I set the description in a separate script right after it works so I thought maybe I should log out of the session once the iapp is created and then create a new session but within the same script. That's when I noticed that there seems to be no method for doing that ? In other words once I'm connected via
lb = bigsuds.BIGIP(hostname, username, password)
I cannot seem to log out unless I exit the script which I don't want to do. Surely, this must be possible. Any help is appreciated.
thx
1 Reply
- stucky101_88485
Nimbostratus
btw what I am doing is create an http appservice and within the same session set the descriptions of the http redirect vip and the https vip (sine that cannot be done via the app template). In order to do that I need to unset "strict updates" for a moment so I can add the description. It creates the appservice just fine but the "unset strict" call causes an ugly bigsuds stacktrace basically saying:
bigsuds.ServerError: Server raised fault: 'Could not find element by name: apps'
At this point the appservice is there but the 2 vips don't have the desired descriptions. I can now run another script to set the descriptions using the exact same call (turn strict off, set description, turn back on) and it works fine. The only difference is that here both calls are made as part of 2 different sessions so I'm trying to create 2 sessions within one script.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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