Add feature for supporting spoofguard ipv4 CIDR
Change-Id: Ib0d1d713fa554b462d332a3168675d10f12d9c0f
This commit is contained in:
parent
72e1ccfd7c
commit
a9554cd2a1
@ -151,7 +151,9 @@ class NsxLib(lib.NsxLibBase):
|
||||
if (version.LooseVersion(self.get_version()) >=
|
||||
version.LooseVersion(nsx_constants.NSX_VERSION_3_1_0)):
|
||||
# features available since 3.1.0
|
||||
if (feature == nsx_constants.FEATURE_MP2P_MIGRATION):
|
||||
if feature == nsx_constants.FEATURE_MP2P_MIGRATION:
|
||||
return True
|
||||
if feature == nsx_constants.FEATURE_SPOOFGUARD_CIDR:
|
||||
return True
|
||||
|
||||
if (version.LooseVersion(self.get_version()) >=
|
||||
|
@ -179,6 +179,7 @@ FEATURE_ROUTE_REDISTRIBUTION_CONFIG = 'Tier0 route redistribution config'
|
||||
FEATURE_CONTAINER_CLUSTER_INVENTORY = 'Container Cluster Inventory'
|
||||
FEATURE_IPV6 = 'IPV6 Forwarding and Address Allocation'
|
||||
FEATURE_MP2P_MIGRATION = 'MP to Policy Migration'
|
||||
FEATURE_SPOOFGUARD_CIDR = 'Spoofguard IPv4 CIDR'
|
||||
|
||||
# Features available depending on the Policy Manager backend version
|
||||
FEATURE_NSX_POLICY = 'NSX Policy'
|
||||
|
@ -181,6 +181,12 @@ class NsxPolicyLib(lib.NsxLibBase):
|
||||
if feature == nsx_constants.FEATURE_NSX_POLICY_ADMIN_STATE:
|
||||
return True
|
||||
|
||||
if (version.LooseVersion(self.get_version()) >=
|
||||
version.LooseVersion(nsx_constants.NSX_VERSION_3_1_0)):
|
||||
# features available since 3.1.0
|
||||
if feature == nsx_constants.FEATURE_SPOOFGUARD_CIDR:
|
||||
return True
|
||||
|
||||
return (feature == nsx_constants.FEATURE_NSX_POLICY)
|
||||
|
||||
def reinitialize_cluster(self, resource, event, trigger, payload=None):
|
||||
|
Loading…
Reference in New Issue
Block a user