]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Simple refactor to stop passing around an unused parameter
authorCarl Baldwin <carl.baldwin@hp.com>
Mon, 4 Aug 2014 19:29:33 +0000 (19:29 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Tue, 5 Aug 2014 15:36:03 +0000 (15:36 +0000)
commitd2291d6500d0db25ea62be70219fa62c4b024d17
treeb81c08e1234b91aa891eaf61d8c3f88a1bfe4889
parent03e0989a0fc688ba701e0b5e845ed74e8ea30394
Simple refactor to stop passing around an unused parameter

There is no functional change in this patch.  However, this refactor
allows another patch [1] to make a simpler change to the code base.

This patch includes localizing the initialization of "internal_cidrs"
to a later spot in the "process_router" method.  This has the
advantage that it will be initialized under the same condition that it
will be used.

[1] https://review.openstack.org/#/c/109776

Change-Id: I3ca993d0a33b7c925526099e97999c9d9f76efc2
neutron/agent/l3_agent.py
neutron/tests/unit/test_l3_agent.py