Move LBaaS to 2.1 supported feature

NSXv3 supports native load balancing since 2.1. Move the feature
to 2.1 from 2.0.

Change-Id: Ib2076a2afdd7576ebc262af30d5a4e05fa866ce8
This commit is contained in:
Tong Liu 2017-09-14 11:22:11 +00:00
parent a604662ac0
commit fc58ec85b7
1 changed files with 6 additions and 4 deletions

View File

@ -257,15 +257,17 @@ class NsxLib(NsxLibBase):
return self.nsx_version
def feature_supported(self, feature):
if (version.LooseVersion(self.get_version()) >=
version.LooseVersion(nsx_constants.NSX_VERSION_2_1_0)):
# Features available since 2.1
if (feature == nsx_constants.FEATURE_LOAD_BALANCER):
return True
if (version.LooseVersion(self.get_version()) >=
version.LooseVersion(nsx_constants.NSX_VERSION_2_0_0)):
# Features available since 2.0
# TODO(tongl) Load balancer is supported in the next version
# after 2.0. Move load balancer feature to NSX version 2.x
# when the actual version of NSX has been decided.
if (feature == nsx_constants.FEATURE_EXCLUDE_PORT_BY_TAG or
feature == nsx_constants.FEATURE_ROUTER_FIREWALL or
feature == nsx_constants.FEATURE_LOAD_BALANCER or
feature == nsx_constants.FEATURE_DHCP_RELAY):
return True