Forum Discussion
Serge_van_Ginde
Nimbostratus
Nov 25, 2013Just had a quick look at the bigsuds source and it appears this is already possible!
just initialize your api as here:
api = bigsuds.BIGIP(hostname=bigip, username=user, password=password, cachedir=/tmp/)
(cachedir defaults to None; you can also enable debug=True)
- Rich_W__77692Nov 25, 2013
Cirrus
I looked at the code, too. I think the "cachedir" paramiter for cache'ing the WSDLs after they are downloaded from the device and NOT for accessing local copies of WSDLs ... :( What I would like to do is have a local copy of the WSDLs like the Ruby gem or the java libs ... Oh well ... - Serge_van_GindeNov 25, 2013
Nimbostratus
The cache lifetime is hard coded to 1 day. There's nothing stopping you from patching that :-) - Rich_W__77692Nov 25, 2013
Cirrus
I saw that ... I think it only caches it for the device you're accessing and will read from the cache if it exists. I want to be able to load the WSDLs once and plow through 600+ devices, I access devices running v9 and up. The WSDLs are backwords compatible with all version, so if I have the latest set of all the WSDLs, I'm all set. All I have to do is get the device's version and make the righrt calls ... - Serge_van_GindeNov 25, 2013
Nimbostratus
Should be do able to tweak the caching code to permanently use that cache.