Add new settings to LAUNCH_INSTANCE_DEFAULTS
The new settings ``LAUNCH_INSTANCE_DEFAULTS.enable_metadata`` and ``LAUNCH_INSTANCE_DEFAULTS.enable_net_ports`` allow to hide Metadata and Network Ports tabs from launch instance workflow. It is implemented in the similar way to existing enable_scheduler_hints setting and doesn't change default behaviour Change-Id: I3d1ae5ab6cee614dd2c400f66570e320efbe6100
This commit is contained in:
parent
215896c074
commit
e9b8d707da
@ -2174,6 +2174,10 @@ LAUNCH_INSTANCE_DEFAULTS
|
||||
|
||||
Added the ``default_availability_zone`` option.
|
||||
|
||||
.. versionchanged:: 22.3.0(Zed)
|
||||
|
||||
Added the ``enable_metadata``, ``enable_net_ports`` options.
|
||||
|
||||
Default:
|
||||
|
||||
.. code-block:: python
|
||||
@ -2187,6 +2191,8 @@ Default:
|
||||
"disable_volume": False,
|
||||
"disable_volume_snapshot": False,
|
||||
"enable_scheduler_hints": True,
|
||||
"enable_metadata": True,
|
||||
"enable_net_ports": True,
|
||||
"default_availability_zone": "Any",
|
||||
}
|
||||
|
||||
@ -2274,6 +2280,26 @@ Default: ``True``
|
||||
This setting specifies whether or not Scheduler Hints can be provided when
|
||||
launching an instance.
|
||||
|
||||
enable_metadata
|
||||
###############
|
||||
|
||||
.. versionadded:: 22.3.0(Zed)
|
||||
|
||||
Default: ``True``
|
||||
|
||||
This setting specifies whether or not Metadata can be provided when launching
|
||||
an instance.
|
||||
|
||||
enable_net_ports
|
||||
################
|
||||
|
||||
.. versionadded:: 22.3.0(Zed)
|
||||
|
||||
Default: ``True``
|
||||
|
||||
This setting specifies whether or not Network Ports can be selected when
|
||||
launching an instance.
|
||||
|
||||
default_availability_zone
|
||||
#########################
|
||||
|
||||
|
@ -66,7 +66,8 @@
|
||||
templateUrl: basePath + 'networkports/ports.html',
|
||||
helpUrl: basePath + 'networkports/ports.help.html',
|
||||
formName: 'launchInstanceNetworkPortForm',
|
||||
requiredServiceTypes: ['network']
|
||||
requiredServiceTypes: ['network'],
|
||||
setting: 'LAUNCH_INSTANCE_DEFAULTS.enable_net_ports'
|
||||
},
|
||||
{
|
||||
id: 'secgroups',
|
||||
@ -112,7 +113,8 @@
|
||||
title: gettext('Metadata'),
|
||||
templateUrl: basePath + 'metadata/metadata.html',
|
||||
helpUrl: basePath + 'metadata/metadata.help.html',
|
||||
formName: 'launchInstanceMetadataForm'
|
||||
formName: 'launchInstanceMetadataForm',
|
||||
setting: 'LAUNCH_INSTANCE_DEFAULTS.enable_metadata'
|
||||
}
|
||||
],
|
||||
|
||||
|
@ -251,6 +251,8 @@ LAUNCH_INSTANCE_DEFAULTS = {
|
||||
'disable_volume': False,
|
||||
'disable_volume_snapshot': False,
|
||||
'enable_scheduler_hints': True,
|
||||
'enable_metadata': True,
|
||||
'enable_net_ports': True,
|
||||
'default_availability_zone': 'Any',
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new settings ``LAUNCH_INSTANCE_DEFAULTS.enable_metadata`` and
|
||||
``LAUNCH_INSTANCE_DEFAULTS.enable_net_ports`` allow to hide Metadata and
|
||||
Network Ports tabs from launch instance workflow.
|
Loading…
Reference in New Issue
Block a user