Add in feature for 'on behalf of'
Version 2.2 has a logging feature wher the NSX can log via the X-NSX-EUSER header details of who the request was made for. This feature will enable the plugin to determine whether or not to send this header. Change-Id: Ib87d5df2fbf5e15856511a50013ea47dbd4ca728
This commit is contained in:
parent
9c0d96c285
commit
49ab5d77de
@ -271,9 +271,10 @@ class NsxLib(NsxLibBase):
|
|||||||
def feature_supported(self, feature):
|
def feature_supported(self, feature):
|
||||||
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 3.0
|
# Features available since 2.2
|
||||||
if (feature == nsx_constants.FEATURE_VLAN_ROUTER_INTERFACE or
|
if (feature == nsx_constants.FEATURE_VLAN_ROUTER_INTERFACE or
|
||||||
feature == nsx_constants.FEATURE_IPSEC_VPN):
|
feature == nsx_constants.FEATURE_IPSEC_VPN or
|
||||||
|
feature == nsx_constants.FEATURE_ON_BEHALF_OF):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if (version.LooseVersion(self.get_version()) >=
|
if (version.LooseVersion(self.get_version()) >=
|
||||||
|
@ -136,3 +136,4 @@ FEATURE_DHCP_RELAY = 'DHCP Relay'
|
|||||||
FEATURE_NSX_POLICY = 'NSX Policy'
|
FEATURE_NSX_POLICY = 'NSX Policy'
|
||||||
FEATURE_VLAN_ROUTER_INTERFACE = 'VLAN Router Interface'
|
FEATURE_VLAN_ROUTER_INTERFACE = 'VLAN Router Interface'
|
||||||
FEATURE_IPSEC_VPN = 'IPSec VPN'
|
FEATURE_IPSEC_VPN = 'IPSec VPN'
|
||||||
|
FEATURE_ON_BEHALF_OF = 'On Behalf Of'
|
||||||
|
Loading…
Reference in New Issue
Block a user