]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid constructing a RouterInfo object to get namespace name
authorCarl Baldwin <carl.baldwin@hp.com>
Fri, 10 Oct 2014 05:12:43 +0000 (05:12 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Fri, 10 Oct 2014 19:02:54 +0000 (19:02 +0000)
commitf3dd0e823cbdba1cfaa37433aa56d20edd36f75e
treeba8fa725667740886d767786a1c5f806f910a230
parentc38f68c5aa8590ed771dbfe147e7fb22d8a0c16a
Avoid constructing a RouterInfo object to get namespace name

Constructing a RouterInfo object just for a string concatenation is
inefficient and adds more dependence on the class which needs
refactoring.

Change-Id: Ibaf369d6ebe9285a0c845802def59bfa26ac0fd5
neutron/agent/l3_agent.py
neutron/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py
neutron/tests/unit/services/vpn/test_vpn_agent.py
neutron/tests/unit/test_l3_agent.py