]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactoring of L3 agent notifications for router
authorPaul Michali <pc@michali.net>
Thu, 26 Mar 2015 12:01:58 +0000 (08:01 -0400)
committerPaul Michali <pc@michali.net>
Thu, 2 Apr 2015 16:44:36 +0000 (16:44 +0000)
commit593b64dee4c0923fc85d6656e29a2beb27f27b17
treed2af6c29feaec182710cac690d37d97ea11b1664
parent7904c9c969a7869788b4d21a8ed33d7ec693d077
Refactoring of L3 agent notifications for router

The goal of this refactoring is to reduce duplication by
replacing the L3EventObservers mechanism (a specific
mechanism for L3 agent notifications), with the
CallbacksManager mechanism (a more general mechanism
currently in use), so that there is one method
used.

This is the first part of refactoring the L3 agent so that
it uses the new neutron.callbacks mechanism. To do this,
duplicate calls will be made for notifications related to
the router, only using the new callback mechanism.

This commit does two things. First, it puts in place the
notifiers for the new callback mechanism. Second, it updates
the metatdata proxy agent (which is in the same repo) to
use the new callback mechanism.

Later commits will update other repos from the old to new
callback mechanism, and to then remove the old callback
mechanism, once no longer used.

Change-Id: If134947957fd671aa99a0b2d2b37f7ec65e37766
Partial-Bug: #1433552
neutron/agent/l3/agent.py
neutron/agent/metadata/driver.py
neutron/tests/functional/agent/test_l3_agent.py [changed mode: 0644->0755]
neutron/tests/unit/test_l3_agent.py