Merge "Disallow in-place update of Port MAC address"
This commit is contained in:
commit
4563f0d0db
@ -245,7 +245,6 @@ class Port(neutron.NeutronResource):
|
|||||||
constraints=[
|
constraints=[
|
||||||
constraints.CustomConstraint('mac_addr')
|
constraints.CustomConstraint('mac_addr')
|
||||||
],
|
],
|
||||||
update_allowed=True,
|
|
||||||
),
|
),
|
||||||
ALLOWED_ADDRESS_PAIRS: properties.Schema(
|
ALLOWED_ADDRESS_PAIRS: properties.Schema(
|
||||||
properties.Schema.LIST,
|
properties.Schema.LIST,
|
||||||
@ -543,7 +542,6 @@ class Port(neutron.NeutronResource):
|
|||||||
result = super(Port, self).parse_live_resource_data(
|
result = super(Port, self).parse_live_resource_data(
|
||||||
resource_properties, resource_data)
|
resource_properties, resource_data)
|
||||||
result[self.QOS_POLICY] = resource_data.get('qos_policy_id')
|
result[self.QOS_POLICY] = resource_data.get('qos_policy_id')
|
||||||
result.pop(self.MAC_ADDRESS)
|
|
||||||
fixed_ips = resource_data.get(self.FIXED_IPS) or []
|
fixed_ips = resource_data.get(self.FIXED_IPS) or []
|
||||||
if fixed_ips:
|
if fixed_ips:
|
||||||
result.update({self.FIXED_IPS: []})
|
result.update({self.FIXED_IPS: []})
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
``OS::Neutron::Port`` resources will now be replaced when the
|
||||||
|
``mac_address`` property is modified. Neutron is unable to update the MAC
|
||||||
|
address of a port once the port is in use.
|
Loading…
Reference in New Issue
Block a user