]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor OVS-agent init-method
authorSergey Belous <sbelous@mirantis.com>
Fri, 2 Oct 2015 16:24:29 +0000 (19:24 +0300)
committerSergey Belous <sbelous@mirantis.com>
Mon, 23 Nov 2015 13:29:46 +0000 (16:29 +0300)
commita88fdfc8e113f076603f336befc90500145353ed
treeb558a07d185dace696d69a0d29fd43828f795157
parent6c0841e8e26cf853b5b1ef5e2282bdbf87171108
Refactor OVS-agent init-method

Removed create_agent_config_map method which creates specific
configurations dictionary according to cfg.CONF and call the OVS-agent
with that structure. Passing oslo_config directly to init-method
of OVS-agent is more straightforward and makes it more testable.
Also refactored unit and functional tests of OVS-agent in accordance
with the changes in init-method.

Closes-bug: #1464394
Change-Id: I88742e4d454709e35481f2c505c9d64995497cac
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/functional/agent/l2/base.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_tunnel.py