]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
SR-IOV: fixed singletion behavior for ESwitchManager
authorMoshe Levi <moshele@mellanox.com>
Mon, 10 Aug 2015 07:06:00 +0000 (10:06 +0300)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 10 Aug 2015 07:42:41 +0000 (07:42 +0000)
commit09dd8848d3ae309ddfbe9fa7cd1f9abf4442ec7d
treed75f845f4d9734357f689b2314ee295550d2b0f4
parenta7eeab83ebe1023c14cfaab6b8366a6950e3551d
SR-IOV: fixed singletion behavior for ESwitchManager

__init__ is called for any __call__ on a class, no matter whether it is
a singleton. Meaning, client was reinitialized every time a caller
instantiated the ESwitchManager which break the SR-IOV agent when working
with agent qos extension.

Partially-Implements: blueprint ml2-sriov-qos-with-bwlimiting
Change-Id: I31f59e1ee3bbd6bdb039cd149d7a335c692d538d
neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py