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:
Gary Kotton 2017-11-07 04:08:40 -08:00
parent 9c0d96c285
commit 49ab5d77de
2 changed files with 4 additions and 2 deletions

View File

@ -271,9 +271,10 @@ class NsxLib(NsxLibBase):
def feature_supported(self, feature):
if (version.LooseVersion(self.get_version()) >=
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
feature == nsx_constants.FEATURE_IPSEC_VPN):
feature == nsx_constants.FEATURE_IPSEC_VPN or
feature == nsx_constants.FEATURE_ON_BEHALF_OF):
return True
if (version.LooseVersion(self.get_version()) >=

View File

@ -136,3 +136,4 @@ FEATURE_DHCP_RELAY = 'DHCP Relay'
FEATURE_NSX_POLICY = 'NSX Policy'
FEATURE_VLAN_ROUTER_INTERFACE = 'VLAN Router Interface'
FEATURE_IPSEC_VPN = 'IPSec VPN'
FEATURE_ON_BEHALF_OF = 'On Behalf Of'