diff options
author | Salvatore Orlando <salv.orlando@gmail.com> | 2015-07-15 05:42:42 -0700 |
---|---|---|
committer | Salvatore Orlando <salv.orlando@gmail.com> | 2015-07-15 05:44:17 -0700 |
commit | 11897cb42c2ba67c8afc1c6791c6c40184689784 (patch) | |
tree | 8a931b1d66b702f2b73f121acefa1524a42a07c1 | |
parent | 0094e51003b858522a8ec4b2922ed9e725aadbc3 (diff) | |
download | python-neutronclient-11897cb42c2ba67c8afc1c6791c6c40184689784.tar.gz |
NSX gateway extension: allow more transport type values
This patch adds ipsec_gre and ipsec_stt to the list of allowed
value for the trasnport type option when creating gateway devices.
Change-Id: Ie48a74a05505db76a7305368793a77789d15f53e
Partial-Bug: #1474834
-rw-r--r-- | neutronclient/neutron/v2_0/nsx/networkgateway.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/neutronclient/neutron/v2_0/nsx/networkgateway.py b/neutronclient/neutron/v2_0/nsx/networkgateway.py index 52a3825..251fbc6 100644 --- a/neutronclient/neutron/v2_0/nsx/networkgateway.py +++ b/neutronclient/neutron/v2_0/nsx/networkgateway.py @@ -23,8 +23,9 @@ from neutronclient.neutron import v2_0 as neutronV20 GW_RESOURCE = 'network_gateway' DEV_RESOURCE = 'gateway_device' CONNECTOR_TYPE_HELP = _("Type of the transport zone connector to use for this " - "device. Valid values are gre, stt, ipsecgre, " - "ipsecstt, and bridge. Defaults to stt.") + "device. Valid values are gre, stt, ipsec_gre, " + "ipsec_stt, and bridge. Defaults to stt. ipsecgre and " + "ipsecstt are also accepted as alternative names") CONNECTOR_IP_HELP = _("IP address for this device's transport connector. " "It must correspond to the IP address of the interface " "used for tenant traffic on the NSX gateway node.") @@ -84,7 +85,8 @@ class CreateGatewayDevice(neutronV20.CreateCommand): parser.add_argument( '--connector-type', default='stt', - choices=['stt', 'gre', 'ipsecgre', 'ipsecstt', 'bridge'], + choices=['stt', 'gre', 'ipsecgre', 'ipsecstt', 'bridge', + 'ipsec_gre', 'ipsec_stt'], help=CONNECTOR_TYPE_HELP) parser.add_argument( '--connector-ip', @@ -117,7 +119,8 @@ class UpdateGatewayDevice(neutronV20.UpdateCommand): parser.add_argument( '--connector-type', required=False, - choices=['stt', 'gre', 'ipsecgre', 'ipsecstt', 'bridge'], + choices=['stt', 'gre', 'ipsecgre', 'ipsecstt', 'bridge', + 'ipsec_gre', 'ipsec_stt'], help=CONNECTOR_TYPE_HELP) parser.add_argument( '--connector-ip', |