diff options
author | Victor Coutellier <victor.coutellier@gmail.com> | 2020-02-04 19:37:30 +0100 |
---|---|---|
committer | Rico Lin <ricolin@ricolky.com> | 2021-03-11 15:26:27 +0000 |
commit | 1dcbac064cf9e795cee114b81ae8fba77e72de50 (patch) | |
tree | 9bf0ec148f82a216d7c4481ff147fd0b31321bf0 /heat | |
parent | bc7c8500e8ac2980fa919f561126fd1feecb15c7 (diff) | |
download | heat-1dcbac064cf9e795cee114b81ae8fba77e72de50.tar.gz |
Add segments attribute to OS::Neutron::ProviderNet
Adds a attribute to the neutron ProviderNet resource to get the
segments of a provider network.
Change-Id: I27656822fd10dffbcaeda016c27a47974313a65d
Story: 2007260
Task: 38622
Diffstat (limited to 'heat')
-rw-r--r-- | heat/engine/resources/openstack/neutron/provider_net.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/heat/engine/resources/openstack/neutron/provider_net.py b/heat/engine/resources/openstack/neutron/provider_net.py index 342e9c3e4..31fd470b0 100644 --- a/heat/engine/resources/openstack/neutron/provider_net.py +++ b/heat/engine/resources/openstack/neutron/provider_net.py @@ -46,9 +46,9 @@ class ProviderNet(net.Net): ) ATTRIBUTES = ( - STATUS, SUBNETS, + STATUS, SUBNETS, SEGMENTS, ) = ( - 'status', 'subnets', + 'status', 'subnets', 'segments', ) NETWORK_TYPES = ( @@ -121,6 +121,11 @@ class ProviderNet(net.Net): _("Subnets of this network."), type=attributes.Schema.LIST ), + SEGMENTS: attributes.Schema( + _("The segments of this network."), + type=attributes.Schema.LIST, + support_status=support.SupportStatus(version='16.0.0'), + ), } def validate(self): |