]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move L2populationDbMixin to module-level functions
authorTerry Wilson <twilson@redhat.com>
Fri, 15 Jan 2016 19:44:14 +0000 (13:44 -0600)
committerTerry Wilson <twilson@redhat.com>
Fri, 15 Jan 2016 22:12:10 +0000 (16:12 -0600)
commit3c683709e6cf687d7e15e1cfc28373a12a56d9f2
treed5919fe1b8df301239c0337d24da3705ef0cfa39
parent98ebf0ee25e3e153a5eea24647823b0b82801d0f
Move L2populationDbMixin to module-level functions

None of the L2populationDbMixin methods actually use 'self' for
anything. As the class is basically just used as a namespace and
modules already provide that, this patch gets rid of the mixin. This
makes the code simpler and easier to debug as inheritance doesn't buy
us anything in this case.

Change-Id: Ibf4dfe49a2ebc32d3909d3d7b579d2bb2ea3f61d
neutron/plugins/ml2/drivers/l2pop/db.py
neutron/plugins/ml2/drivers/l2pop/mech_driver.py
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_db.py
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py