I have a standard Python class which has functions for all version. In my environment we have standard ONTAP version so it is easy to identify geneally but if you have multiple version of ONTAP, I suggest to have one class with multiple functions in it for multiple version.
In your main script, use API failure message i.e. if there is failure then your other function and keep doing so until failure message does not go away.
yes i get your point. is there any documentation for this major:minor no. combination
actually i m writing a generic script with NMSDK so for every array it can handle the version and provide the output despite of failure. or any command through which we can get the major and minor version?