sdk error in
I am getting an error when trying to retrieve the web-acceleration collection, that i have not seen in previous calls:
Here is the code:
mgmt = ManagementRoot(ip, usr, pwd)
f5Data = mgmt.tm.ltm.profile.web_accelerations.get_collection()
for profile in f5Data:
comps = profile.web_compressions.get_collection()
for comp in comps:
print (f"{comp.raw}")
And here is the error i'm getting:
Traceback (most recent call last):
File "/Users/ttait/Documents/Networks/f5scraper/mytest.py", line 14, in
i have successfully done many other calls using the sdk, so i know it connects, and has the ability to work properly. but i am unable to get the web_accelerations due to this error.
thank you, -timothy
this seems to be a similar issue to #1533
i wonder if the dash in the kind is the problem as that is similar in both issues. I can load the profiles by name just fine.
We are no longer putting development effort in this library, feel free to fork it and make changes if necessary. For imperative operations like this with the rest interface, I'd recommend the bigrest library developed by one of our MVPs. The wa profile load works fine with that:
from bigrest.bigip import BIGIP
b = BIGIP('ltm3.test.local', 'admin', 'admin')
wa_profiles = b.load('/mgmt/tm/ltm/profile/web-acceleration')
for p in wa_profiles:
print(p.properties.get('name'))