]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Prevent updating mac address of bound port
authorChuckC <ccarlino@hp.com>
Mon, 9 Mar 2015 00:51:09 +0000 (17:51 -0700)
committerChuckC <ccarlino@hp.com>
Sat, 14 Mar 2015 14:17:00 +0000 (07:17 -0700)
commit89b9e8597816a5ac2f5a48133777c88abb91914e
tree4820a575dd12bd8f27456bd6d4527d2bf15a446e
parent9616c5f4754649965735d8cdcba225941b3cebf3
Prevent updating mac address of bound port

Currently, a port's mac address can be updated even if it is bound.
This fixes the _check_mac_update_allowed() call to pass just port update
attributes rather than the entire payload and fills in missing testing.

Change-Id: Iee8492e9b4fcdb07eb438eb6f5958d7addeb3d8f
Closes-bug: #1429672
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py