Forum Discussion
mhite_60883
Cirrocumulus
Jan 22, 2012Test API version to implement backward compatibility
Hello, What is the recommended best practice for determining API version via iControl? I have a mixed 10.x and 11.x environment, and I would like to create versions of various scripts that c...
mhite_60883
Cirrocumulus
Jan 23, 2012Ah, so I suppose if I want a version independent way of doing this, I need to just pick an API endpoint that is supported in V9 and above, ie.
def f5_get_api_version(b):
version_string = str(b.System.SystemInfo.get_version())
major, minor, patch = [int(x) for x in version_string.split("_")[1][1:].split(".")]
return(major, minor, patch)
(Presuming that major, minor, and patch values are always numeric... probably a bad presumption..lol)
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects