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:
parent
a604662ac0
commit
fc58ec85b7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue