]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
cisco: Do not change supported_extension_aliases directly
authorAkihiro Motoki <motoki@da.jp.nec.com>
Fri, 14 Mar 2014 23:51:12 +0000 (08:51 +0900)
committerAkihiro Motoki <motoki@da.jp.nec.com>
Fri, 14 Mar 2014 23:56:00 +0000 (08:56 +0900)
commit773352e39f371cda9c2f1be4c55accf4b7dc017b
tree7d54ea66dc9281d5cffd7336d559e612c3dc0d8f
parent598148595201b69f58a616f9ca669bd3e6376ce5
cisco: Do not change supported_extension_aliases directly

cisco network plugin extends supported_extension_aliases in __init__
but supported_exntension_aliases is a class attribute and it is not
reset to the original even after each unit test finished.
To avoid this this patch copies supported_extension_aliases to
an instance attribute and extends it to ensure the class variable
is not changed. This reduces unnecessary logs in unit tests.

Change-Id: I3a7313f5ca2d10b1ae6ea961d9d05611aee055c0
Closes-Bug: #1292742
neutron/plugins/cisco/network_plugin.py