f5-common-python: Add list of supported TMOS versions in the Returned Exception
After upgrading to 0.1.7 existing code from 0.1.5 breaks.
Python 2.7.6 (Ubuntu 14.04) TMOS 12.1.0
Example:
0.1.5:
%cat foo.py
from f5.bigip import BigIP
# Connect to the BigIP
bigip = BigIP("10.1.1.2", "admin", "admin")
# Get a list of all pools on the BigIP and print their name and their
# members' name
pools = bigip.ltm.pools.get_collection()
for pool in pools:
print pool.name
for member in pool.members_s.get_collection():
print member.name
%python foo.py
...
172.16.63.2:80
172.16.77.2:80
172.16.86.3:80
% pip install --upgrade f5-sdk
% python foo.py
...
Traceback (most recent call last):
File "foo.py", line 8, in <module>
pools = bigip.ltm.pools.get_collection()
File "/XXX/ENV/local/lib/python2.7/site-packages/f5/bigip/mixins.py", line 113, in __getattr__
container._check_supported_versions(attribute)
File "/XXX/ENV/local/lib/python2.7/site-packages/f5/bigip/mixins.py", line 124, in _check_supported_versions
raise UnsupportedTmosVersion(error)
f5.bigip.mixins.UnsupportedTmosVersion: There was an attempt to access API which has not been implemented or supported in the device's TMOS version: 12.1.0
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 25 (18 by maintainers)
Commits related to this issue
- Added fix for #491 — committed to wojtek0806/f5-common-python by wojtek0806 8 years ago
- Merge pull request #486 from wojtek0806/fixes_378_474_452 Multibugfixes_ #378, #452, #474, #481, #484, #485, #491 — committed to F5Networks/f5-common-python by zancas 8 years ago
- Added fix for #491 — committed to pjbreaux/f5-common-python-1 by wojtek0806 8 years ago
- Added fix for #491 — committed to caphrim007/f5-common-python by wojtek0806 8 years ago
@chen23 we intend to release a bugfix this Friday that will make the SDK “just work” again for 12.1.