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:
huangtianhua 2014-01-24 16:07:50 +08:00
parent de2e08fedf
commit d75997221e
2 changed files with 10 additions and 4 deletions

View File

@ -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,

View File

@ -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"
}
}