Add IPSEC VPN feature flag and update version number

Change-Id: If3130bdfd4f558aaf9558c70b46f54361017c5f2
This commit is contained in:
Adit Sarfaty 2017-11-06 12:55:56 +02:00
parent d6bf9cd1b6
commit 9c0d96c285
2 changed files with 5 additions and 2 deletions

View File

@ -270,9 +270,10 @@ class NsxLib(NsxLibBase):
def feature_supported(self, feature):
if (version.LooseVersion(self.get_version()) >=
version.LooseVersion(nsx_constants.NSX_VERSION_3_0_0)):
version.LooseVersion(nsx_constants.NSX_VERSION_2_2_0)):
# Features available since 3.0
if (feature == nsx_constants.FEATURE_VLAN_ROUTER_INTERFACE):
if (feature == nsx_constants.FEATURE_VLAN_ROUTER_INTERFACE or
feature == nsx_constants.FEATURE_IPSEC_VPN):
return True
if (version.LooseVersion(self.get_version()) >=

View File

@ -123,6 +123,7 @@ ERR_CODE_IPAM_RANGE_SHRUNK = 5016
NSX_VERSION_1_1_0 = '1.1.0'
NSX_VERSION_2_0_0 = '2.0.0'
NSX_VERSION_2_1_0 = '2.1.0'
NSX_VERSION_2_2_0 = '2.2.0'
NSX_VERSION_3_0_0 = '3.0.0'
# Features available depending on the backend version
@ -134,3 +135,4 @@ FEATURE_LOAD_BALANCER = 'Load Balancer'
FEATURE_DHCP_RELAY = 'DHCP Relay'
FEATURE_NSX_POLICY = 'NSX Policy'
FEATURE_VLAN_ROUTER_INTERFACE = 'VLAN Router Interface'
FEATURE_IPSEC_VPN = 'IPSec VPN'