Add feature flag for ENS with QOS since 2.5
Change-Id: I1e0259ac4df916727594cbcdbdc98b1213f57cd9
This commit is contained in:
parent
089db38213
commit
200c764976
|
@ -172,6 +172,8 @@ class NsxLib(lib.NsxLibBase):
|
|||
return True
|
||||
if (feature == nsx_constants.FEATURE_IPV6):
|
||||
return True
|
||||
if (feature == nsx_constants.FEATURE_ENS_WITH_QOS):
|
||||
return True
|
||||
|
||||
if (version.LooseVersion(self.get_version()) >=
|
||||
version.LooseVersion(nsx_constants.NSX_VERSION_2_4_0)):
|
||||
|
|
|
@ -165,6 +165,7 @@ FEATURE_TRUNK_VLAN = 'Trunk Vlan'
|
|||
FEATURE_ROUTER_TRANSPORT_ZONE = 'Router Transport Zone'
|
||||
FEATURE_NO_DNAT_NO_SNAT = 'No DNAT/No SNAT'
|
||||
FEATURE_ENS_WITH_SEC = 'ENS with security'
|
||||
FEATURE_ENS_WITH_QOS = 'ENS with QoS'
|
||||
FEATURE_ICMP_STRICT = 'Strict list of supported ICMP types and codes'
|
||||
FEATURE_ROUTER_ALLOCATION_PROFILE = 'Router Allocation Profile'
|
||||
FEATURE_ENABLE_STANDBY_RELOCATION = 'Router Enable standby relocation'
|
||||
|
|
|
@ -147,11 +147,17 @@ class NsxPolicyLib(lib.NsxLibBase):
|
|||
|
||||
def feature_supported(self, feature):
|
||||
if (version.LooseVersion(self.get_version()) >=
|
||||
version.LooseVersion(nsx_constants.NSX_VERSION_2_4_0)):
|
||||
version.LooseVersion(nsx_constants.NSX_VERSION_2_4_0)):
|
||||
# Features available since 2.4
|
||||
if (feature == nsx_constants.FEATURE_NSX_POLICY_NETWORKING):
|
||||
return True
|
||||
|
||||
if (version.LooseVersion(self.get_version()) >=
|
||||
version.LooseVersion(nsx_constants.NSX_VERSION_2_5_0)):
|
||||
# Features available since 2.5
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue