Forum Discussion

stucky101_88485's avatar
stucky101_88485
Icon for Nimbostratus rankNimbostratus
Sep 03, 2013

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

  • 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.