Add version 2.4 and initial features list
Change-Id: Ie94c5e797eac415103ecf574c8bcd1327a14d06c
This commit is contained in:
parent
1c1058dbdc
commit
9c1f787a5a
@ -318,6 +318,12 @@ class NsxLib(NsxLibBase):
|
|||||||
return node.get('export_type') is 'RESTRICTED'
|
return node.get('export_type') is 'RESTRICTED'
|
||||||
|
|
||||||
def feature_supported(self, feature):
|
def feature_supported(self, feature):
|
||||||
|
if (version.LooseVersion(self.get_version()) >=
|
||||||
|
version.LooseVersion(nsx_constants.NSX_VERSION_2_3_0)):
|
||||||
|
# Features available since 2.3
|
||||||
|
if (feature == nsx_constants.FEATURE_ENS_WITH_SEC):
|
||||||
|
return True
|
||||||
|
|
||||||
if (version.LooseVersion(self.get_version()) >=
|
if (version.LooseVersion(self.get_version()) >=
|
||||||
version.LooseVersion(nsx_constants.NSX_VERSION_2_2_0)):
|
version.LooseVersion(nsx_constants.NSX_VERSION_2_2_0)):
|
||||||
# Features available since 2.2
|
# Features available since 2.2
|
||||||
|
@ -126,6 +126,7 @@ NSX_VERSION_2_0_0 = '2.0.0'
|
|||||||
NSX_VERSION_2_1_0 = '2.1.0'
|
NSX_VERSION_2_1_0 = '2.1.0'
|
||||||
NSX_VERSION_2_2_0 = '2.2.0'
|
NSX_VERSION_2_2_0 = '2.2.0'
|
||||||
NSX_VERSION_2_3_0 = '2.3.0'
|
NSX_VERSION_2_3_0 = '2.3.0'
|
||||||
|
NSX_VERSION_2_3_0 = '2.4.0'
|
||||||
NSX_VERSION_3_0_0 = '3.0.0'
|
NSX_VERSION_3_0_0 = '3.0.0'
|
||||||
|
|
||||||
# Features available depending on the backend version
|
# Features available depending on the backend version
|
||||||
@ -143,3 +144,4 @@ FEATURE_ON_BEHALF_OF = 'On Behalf Of'
|
|||||||
FEATURE_TRUNK_VLAN = 'Trunk Vlan'
|
FEATURE_TRUNK_VLAN = 'Trunk Vlan'
|
||||||
FEATURE_ROUTER_TRANSPORT_ZONE = 'Router Transport Zone'
|
FEATURE_ROUTER_TRANSPORT_ZONE = 'Router Transport Zone'
|
||||||
FEATURE_NO_DNAT_NO_SNAT = 'No DNAT/No SNAT'
|
FEATURE_NO_DNAT_NO_SNAT = 'No DNAT/No SNAT'
|
||||||
|
FEATURE_ENS_WITH_SEC = 'ENS with security'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user