Now heat only supports 'vlan' and 'flat' network type
for OS::Neutron::ProviderNet, this will add all other
supported network types: 'vxlan', 'local', 'gre' and
'geneve'.
Change-Id: If7cb4fbc83f5aa62a0b73e003ff23ec2b40b2ded
Closes-Bug: #1692445
The default policy usage of some neutron resources
is limited to administrators only. This change will
add the docstring and resource type policy for
the resources:
OS::Neutron::ProviderNet
OS::Neutron::Segment
Change-Id: Ia8c0bf1d0ceaf92416539ffba7ee85c6aa50e256
Closes-Bug: #1690328
We don't have a way to enable/disable properties based on service
extension availability. Using default values for properties results
in error from the service when the extension is not available.
Change-Id: Iec0413e2bf5b1649915d490b949d0c605b165bb3
Closes-Bug: #1689639
physical_network property should not be
required when creating provider_network
Change-Id: I04510d8b3ac11e66ba85b9fdc36f98fbec198de6
Closes-Bug: #1549702
Add description of resources in openstack folder
of heat engine. It should help users to understand
which resource is need to.
Resources' services updated in this patch:
* heat
* neutron
implements bp docstring-improvements
Change-Id: I069c7889d3b4067602ee10c026625733c16a9ad2
Changes remaining resources(Router, NetworkGateway) to
use prop_diff in handle_update.
Also refactors some common stuff to prepare_update_properties.
Change-Id: I18f4ce78492779261b542ff6de8898eb729947b8
Closes-Bug: #1521836
Use default client name for neutron resources instead of
self.neutron() to provide a single way of client usage.
Change-Id: Ib18c18df1ac79b787ca51131cb02c2486198ae87
- base_attributes_schema was added for base resource class.
- 'show' attribute was added to base_attributes_schema.
- fixed corresponding unittests
- definition of 'show' attribute was deleted from some resources,
because now it's presented in base resource class.
- Also was added temporary hook for stack_resource class to stop
resolving 'show' attribute.
Change-Id: Ie07fdc28a98be72064692ebffaf6d0c3eb128887
Add type field to the schema of the heat resources.
Implements: blueprint add-type-in-attributes-schema
Change-Id: Iccdacdab5790e58d10b0814aeaef85f3bf54fe51
Remove unnecessary using self.properties.get for more
clear code. Using properties.get(prop, default) causes
next issues:
1. properties.get(prop) if prop not in properties_schema
will return None instead of expected KeyError.
2. properties.get(prop, default) returns "default" value
if current properties is not presented in properties_schema.
So using self.properties.get() makes sense only when we plan
to use this property with default option in another resource,
which has not it in property schema.
This patch replaces this methods in resources/openstack folder.
Change-Id: I523eb3feacb0cb7a16a928a92896ce56188e376f
Since i18n.install() is deprecated, remove it from heat codes and
import i18n._() to where it needed.
blueprint oslo-i18n
Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
Define the support_status attribute for resources added during the
icehouse and juno cycles. The `version` provided is the tag of the
stable release.
Implements: blueprint heat-templates
Change-Id: Ic1b14bfa338cddc91ae235ccec47241cc97d26ef
This moves the client creation code out of Clients._neutron() into
its own client plugin.
Neutron is an integrated project, and python-neutronclient is a dependency,
so the import is now mandatory. Also any conditional code which skipped
if the neutron client was missing has been removed, since the presense or
absense of an installed neutronclient has no bearing on whether neutron
is installed on a given cloud.
Change-Id: Id9fdc50e80efe78731e21934ed9f2704cc3eb408
The update_allowed_keys attribute didn't really define any useful
policy, and prevented automatic update which should be handled by the
base Resource class like DeletionPolicy. This patch removes the usage
and the various definitions around the code base.
Change-Id: I78494aba07b6badeca8e95f1875ca8e4b9b0290c
Co-Authored-By: ala.rezmerita@cloudwatt.com
Partial-Bug: #1316171
Current attributes_schema contains hard codeded names of attributes.
This patch replaces all hard coded names on variables defined in
ATTRIBUTE tuple.
Change-Id: I1ea7b33bd598dba07f2190c282497c573463b0dd
Partial-Bug: #1307319
Currently resources use old style of attribute schema. For example:
attribute_name: _('Description')
This patch contains changes to migrate for new attribute Schema class.
For example:
attribute_name: attributes.Schema(_('Descriprion'))
Partial-Bug: #1307319
Change-Id: I54c7b9d481655b0051d0f7ff668672011ac882e9
This patch is one in a series to re-enable H306 style check rule
(imports are in alphabetical order). It touches engine resources files.
Implements: blueprint reduce-flake8-ignored-rules (partial)
Change-Id: I7ab23e1df0c5c0ceba4bb6e4f3d6558e06bee2dd
Provider network map directly to an existing physical network in
a data center. It's routable by default. Neutron v2.0 API implements
it using Provider Networks Neutron API Extension. This is different
from tenant network(implemented by 'OS::Neutron::Net'resource) and has
different requirements.
This ('OS::Neutron::ProviderNet') resource leverages additional
attributes as listed below from Neutron API extension.
provider:network_type - Specifies the nature of the physical network
mapped to this network resource. Examples are flat and vlan.
provider:physical_network - Identifies the physical network on top of
which this network object is being implemented.
provider:segmentation_id - Identifies an isolated segment on the
physical network.
Change-Id: Ic085d13c866722b0e6ed9fd7a4f43dd92d5b1a0b
Implements: blueprint neutron-net-resource-add-provider-network