Ensure some properties update_allowed on port res
Adding update_allowed attribute for "name" and "device_id" properties on the resource OS::Neutron::Port Change-Id: I5fa9eab2493e7b60d1540fffc4f883ff362f4847 Closes-Bug: #1272207
This commit is contained in:
parent
de2e08fedf
commit
d75997221e
|
@ -55,7 +55,8 @@ class Port(neutron.NeutronResource):
|
|||
),
|
||||
NAME: properties.Schema(
|
||||
properties.Schema.STRING,
|
||||
_('A symbolic name for this port.')
|
||||
_('A symbolic name for this port.'),
|
||||
update_allowed=True
|
||||
),
|
||||
VALUE_SPECS: properties.Schema(
|
||||
properties.Schema.MAP,
|
||||
|
@ -95,7 +96,8 @@ class Port(neutron.NeutronResource):
|
|||
),
|
||||
DEVICE_ID: properties.Schema(
|
||||
properties.Schema.STRING,
|
||||
_('Device ID of this port.')
|
||||
_('Device ID of this port.'),
|
||||
update_allowed=True
|
||||
),
|
||||
SECURITY_GROUPS: properties.Schema(
|
||||
properties.Schema.LIST,
|
||||
|
|
|
@ -1507,7 +1507,9 @@ class NeutronFloatingIPTest(HeatTestCase):
|
|||
'fixed_ips': [
|
||||
{'subnet_id': 'sub1234', 'ip_address': '10.0.0.11'}
|
||||
],
|
||||
'admin_state_up': True
|
||||
'admin_state_up': True,
|
||||
'name': 'test_port',
|
||||
'device_id': 'd6b4d3a5-c700-476f-b609-1493dd9dadc2'
|
||||
}
|
||||
}
|
||||
).AndReturn(None)
|
||||
|
@ -1540,7 +1542,9 @@ class NeutronFloatingIPTest(HeatTestCase):
|
|||
"fixed_ips": [{
|
||||
"subnet_id": "sub1234",
|
||||
"ip_address": "10.0.0.11"
|
||||
}]
|
||||
}],
|
||||
"name": "test_port",
|
||||
"device_id": "d6b4d3a5-c700-476f-b609-1493dd9dadc2"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue