]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
AgentExtensionsManager and AgentCoreResourceExtension
authorMoshe Levi <moshele@mellanox.com>
Wed, 24 Jun 2015 15:10:05 +0000 (18:10 +0300)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 2 Jul 2015 13:51:34 +0000 (13:51 +0000)
commitc26142be338ef14f5fd0a4c7aa5b4ac42bc685d1
tree87c4fe4eefff45c6484ca6bb47d2a04bc09935cd
parent2d38c742e84aebccd367eb7312ddaaeb0d02bc01
AgentExtensionsManager and AgentCoreResourceExtension

This patch introduces the following classes:
L2Agent - abstract class for common L2Agent implementions.
AgentExtensionsManager - to load AgentCoreResourceExtension.
AgentCoreResourceExtension - interface class to define
the AgentCoreResourceExtension API.
This allows better segregation between L2 Agent Core
and L2 Agent Extensions.

The patch is missing unit test but it was tested manually.
I added a unit tests @TODO comments to come back
to them later.

Change-Id: I813de7ff1bee188f4294f4b3eb3645ebd903297b
neutron/agent/l2/__init__.py [new file with mode: 0644]
neutron/agent/l2/agent_extension.py [new file with mode: 0644]
neutron/agent/l2/agent_extensions_manager.py [new file with mode: 0644]
neutron/agent/l2/l2_agent.py [new file with mode: 0644]
setup.cfg