NSXv3: Add util to check version 2.1.0

Add another common util function to check if backend version is
greater or equal to 2.1.0.

Depends-on: Id8fd9d6ee2ce376a2d1b5e393a28fa3a063b181f
Change-Id: I037ea69f979e509db17197faa9affbdcfcc2e0b3
This commit is contained in:
Tong Liu 2017-06-16 11:08:23 +00:00 committed by Adit Sarfaty
parent 03635768e0
commit e4f6ad98c0

View File

@ -76,6 +76,11 @@ def is_nsx_version_2_0_0(nsx_version):
version.LooseVersion(v3_const.NSX_VERSION_2_0_0))
def is_nsx_version_2_1_0(nsx_version):
return (version.LooseVersion(nsx_version) >=
version.LooseVersion(v3_const.NSX_VERSION_2_1_0))
def is_nsxv_version_6_2(nsx_version):
return (version.LooseVersion(nsx_version) >=
version.LooseVersion('6.2'))