summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-18 13:10:13 +0000
committerGerrit Code Review <review@openstack.org>2017-06-18 13:10:13 +0000
commitb7a09fc0e825683e700bb8907347783d615181eb (patch)
tree4f73f72e1e767eb5b0336d5bc9452c6a53310b81
parent753c72ed55199022d2c5e10a745dc7aee8c3e68f (diff)
parente4f6ad98c0a64d3dc7483e2f0aa3eb813d849b24 (diff)
Merge "NSXv3: Add util to check version 2.1.0"
-rw-r--r--vmware_nsx/common/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmware_nsx/common/utils.py b/vmware_nsx/common/utils.py
index 8f7370d..e17004a 100644
--- a/vmware_nsx/common/utils.py
+++ b/vmware_nsx/common/utils.py
@@ -76,6 +76,11 @@ def is_nsx_version_2_0_0(nsx_version):
76 version.LooseVersion(v3_const.NSX_VERSION_2_0_0)) 76 version.LooseVersion(v3_const.NSX_VERSION_2_0_0))
77 77
78 78
79def is_nsx_version_2_1_0(nsx_version):
80 return (version.LooseVersion(nsx_version) >=
81 version.LooseVersion(v3_const.NSX_VERSION_2_1_0))
82
83
79def is_nsxv_version_6_2(nsx_version): 84def is_nsxv_version_6_2(nsx_version):
80 return (version.LooseVersion(nsx_version) >= 85 return (version.LooseVersion(nsx_version) >=
81 version.LooseVersion('6.2')) 86 version.LooseVersion('6.2'))