]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow port mac_address to be modified
authorChuckC <ccarlino@hp.com>
Mon, 4 Aug 2014 23:52:36 +0000 (16:52 -0700)
committerChuckC <ccarlino@hp.com>
Thu, 29 Jan 2015 23:00:21 +0000 (15:00 -0800)
commitcf99eb988e05c56d3842ac388dfe9ada5aa8af86
tree04785a53d69e90c209a6719ce37f46cda71583bc
parent817ebe5da8b3216829d4d6b9c3a4547f570f6cd4
Allow port mac_address to be modified

With ironic servers, a NIC can fail and be replaced with one that has a
different mac.  The corresponding neutron port needs to be updated with
the new mac address so the NIC can be guaranteed to retain the same IP
address.

This change enables this feature in the ml2 plugin.  There may need to
be changes to other plugins to disable or complete the implementation of
this feature.

Closes-Bug: #1341268
Partially-implements: blueprint allow-mac-to-be-updated
APIImpact: Ports
DocImpact: minor port update api change
Change-Id: I1864c0882cda7eddc9ced519ed3f96c91b2b63f3
13 files changed:
etc/policy.json
neutron/api/v2/attributes.py
neutron/common/exceptions.py
neutron/db/db_base_plugin_v2.py
neutron/db/securitygroups_rpc_base.py
neutron/plugins/ml2/drivers/brocade/mechanism_brocade.py
neutron/plugins/ml2/drivers/l2pop/mech_driver.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py
neutron/tests/unit/ml2/drivers/test_l2population.py
neutron/tests/unit/ml2/test_ml2_plugin.py
neutron/tests/unit/opencontrail/test_contrail_plugin.py
neutron/tests/unit/test_db_plugin.py