Forum Discussion

avidfan2000_133's avatar
avidfan2000_133
Icon for Nimbostratus rankNimbostratus
Sep 17, 2013

Using a proxy with Bigsuds

Does anyone have an example, or can anyone point me to an example of using an http proxy to connect to the F5 with bigsuds? I need to alter my script to connect to various F5s in multiple environments.

I'm currently connecting in a basic manner:

    host = '122.22.22.22'
    uname = 'myusername'
    upass = 'mypassword'

    b = bigsuds.BIGIP(
             hostname = host,
             username = uname,
             password = upass
             )

    get_pool_members(b)

where get_pool_members is:

def get_pool_members(obj):
          '''get pool names and member info'''
           pools = obj.LocalLB.Pool.get_list()
           members = obj.LocalLB.Pool.get_member(pool_names = pools)
           combined = zip(pools,members)

thanks for any advice.

2 Replies

  • i'll check into this, the latest build I have doesn't look to support connections through a proxy.
  • Not sure if this helps:

     

    http://stackoverflow.com/questions/12414600/suds-ignoring-proxy-setting/1243360612433606

     

    Also, it sounds like http_proxy and https_proxy environment variables might be useful things to try.