diff options
author | rabi <ramishra@redhat.com> | 2017-07-14 10:36:03 +0530 |
---|---|---|
committer | Rico Lin <rico.lin@easystack.cn> | 2017-07-27 01:29:15 +0000 |
commit | 1ac09ea1b1b172934d7b8c8395f2d6669ae0dcf3 (patch) | |
tree | ea62d9e80e64d4be0e5830c469334681efa3c6ec | |
parent | 5034bc10afb736eedca0cb4e0503652711008e23 (diff) | |
download | heat-1ac09ea1b1b172934d7b8c8395f2d6669ae0dcf3.tar.gz |
Add CACHE_NONE for FloatingIP attributes
'port_id' and 'fixed_ip_address' attributes for FloatingIP would change
when FloatingIPAssociation is created/updated. Therefore we should not
cache/store them in db.
Change-Id: I8cd580c15289a674888f194e8244041ed64bb172
Ralated-Bug: #1703605
(cherry picked from commit b0b2161ca98d6d177de12cc46a6be24c5b3b39d6)
-rw-r--r-- | heat/engine/resources/openstack/neutron/floatingip.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/heat/engine/resources/openstack/neutron/floatingip.py b/heat/engine/resources/openstack/neutron/floatingip.py index 079806554..7821c0497 100644 --- a/heat/engine/resources/openstack/neutron/floatingip.py +++ b/heat/engine/resources/openstack/neutron/floatingip.py @@ -147,7 +147,8 @@ class FloatingIP(neutron.NeutronResource): ), FIXED_IP_ADDRESS_ATTR: attributes.Schema( _('IP address of the associated port, if specified.'), - type=attributes.Schema.STRING + type=attributes.Schema.STRING, + cache_mode=attributes.Schema.CACHE_NONE ), FLOATING_IP_ADDRESS_ATTR: attributes.Schema( _('The allocated address of this IP.'), @@ -155,7 +156,8 @@ class FloatingIP(neutron.NeutronResource): ), PORT_ID_ATTR: attributes.Schema( _('ID of the port associated with this IP.'), - type=attributes.Schema.STRING + type=attributes.Schema.STRING, + cache_mode=attributes.Schema.CACHE_NONE ), } |