Merge "Update NSX ver 3.0 features"

This commit is contained in:
Zuul 2019-07-10 11:08:55 +00:00 committed by Gerrit Code Review
commit aa3508fdc0
2 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,6 @@ NSX_VERSION_2_2_0 = '2.2.0'
NSX_VERSION_2_3_0 = '2.3.0'
NSX_VERSION_2_4_0 = '2.4.0'
NSX_VERSION_2_5_0 = '2.5.0'
NSX_VERSION_2_6_0 = '2.6.0'
NSX_VERSION_3_0_0 = '3.0.0'
# Features available depending on the NSX Manager backend version

View File

@ -161,10 +161,11 @@ class NsxPolicyLib(lib.NsxLibBase):
if (feature == nsx_constants.FEATURE_ENS_WITH_QOS):
return True
if (version.LooseVersion(self.get_version()) >=
version.LooseVersion(nsx_constants.NSX_VERSION_2_6_0)):
if feature == nsx_constants.FEATURE_PARTIAL_UPDATES:
return True
# TODO(asarfaty): Uncomment this once partial updates are supported
# if (version.LooseVersion(self.get_version()) >=
# version.LooseVersion(nsx_constants.NSX_VERSION_3_0_0)):
# if feature == nsx_constants.FEATURE_PARTIAL_UPDATES:
# return True
return (feature == nsx_constants.FEATURE_NSX_POLICY)