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
This commit is contained in:
rabi 2017-07-14 10:36:03 +05:30
parent 8e4845c1ca
commit b0b2161ca9

View File

@ -150,7 +150,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.'),
@ -158,7 +159,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
),
}