]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Removed configuration option for qos agent driver selection
authorIhar Hrachyshka <ihrachys@redhat.com>
Mon, 10 Aug 2015 06:29:52 +0000 (08:29 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 10 Aug 2015 16:08:16 +0000 (18:08 +0200)
commitca0d7bce211d33ef8081684542ba4854cb743d74
tree948123c066b1c56f903f56f160132b62aff009af
parent89abf5edffa4e9fc5be35e766e45858c1d4e0da0
Removed configuration option for qos agent driver selection

There is no (general) use case to allow users to configure qos driver to
load by qos l2 agent extension. So instead of getting the driver name
from the configuration file, hardcode it and potentially reuse for other
extensions that may also be interested in splitting extension into
agent agnostic and agent specific pieces.

Added driver_type parameter to AgentCoreResourceExtension.initialize().
Also updated the method signature to reflect that we expect l2
extensions to receive connection.

Finally, removed #noqa import for openvswitch.common.config from qos
extension unit test since it seems unneeded.

Change-Id: Iae4dcc20c967d1da216772a3a3660e0421263527
Partially-Implements: quantum-qos-api
etc/neutron/plugins/ml2/openvswitch_agent.ini
neutron/agent/l2/agent_extension.py
neutron/agent/l2/extensions/manager.py
neutron/agent/l2/extensions/qos.py
neutron/plugins/ml2/drivers/openvswitch/agent/common/config.py
neutron/plugins/ml2/drivers/openvswitch/agent/common/constants.py
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/agent/l2/extensions/test_manager.py
neutron/tests/unit/agent/l2/extensions/test_qos.py