]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
l2pop: check port mac in pre-commit to stop change
authorKevin Benton <blak111@gmail.com>
Wed, 19 Aug 2015 06:35:46 +0000 (23:35 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 20 Aug 2015 05:56:52 +0000 (22:56 -0700)
commit9016c1f810ee734d4a19032a470d4acb9462639d
tree7b19d41f66a8f007d8362ed4cd29a73c8a46ca44
parent3513a79a935b6dba3ed01e3d31ebd276502a6b95
l2pop: check port mac in pre-commit to stop change

Check that a port mac address hasn't changed during the precommit
phase of the port update rather than the post commit so the resulting
exception actually stops it from happening.

Change-Id: I62f120b3c954fa4251a7d676cf2c623e6da5a98b
Closes-Bug: #1486379
neutron/plugins/ml2/drivers/l2pop/mech_driver.py
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py