neutron/neutron/tests/unit
Isaku Yamahata 9ba23658a3 l3_db: not use L2 plugin _get_port unnecessarily
This patch is clean up to prevent future breakage by eliminating
potentially dangerous code.

l3_db uses L2 plugin _get_port method unnecessarily instead of get_port.
It's dangerous because _get_port returns ORM db object which allows
the caller to update db rows directly. So the caller of _get_port may
update port db without notifying L2 plugin unintentionally.
In that case, L2 plugin or ML2 mechanism driver will be confused.
This patch replace _get_port with get_port method where possible.

Change-Id: I5a23f6cac5ea359645e6947fd69978f060c4ba97
Related-Bug: #1475093
2015-08-13 18:37:49 -07:00
..
agent Merge "Add DNS and DHCP log into dhcp agent" 2015-08-04 04:08:09 +00:00
api Merge "Update dhcp host portbinding on failover" 2015-08-03 15:27:13 +00:00
callbacks Add weak reference test for callback manager 2015-04-23 06:55:03 -07:00
cmd Adding a cleanup for 'qlbaas-' namespaces in netns_cleanup 2015-07-21 13:52:57 +03:00
common Merge "ensure_dir: move under neutron.common.utils" 2015-07-23 08:28:16 +00:00
db l3_db: not use L2 plugin _get_port unnecessarily 2015-08-13 18:37:49 -07:00
debug Reorganize unit test tree 2015-04-06 23:28:31 +00:00
extensions Merge "Fix a microsecond format of isoformat()" 2015-08-03 20:57:02 +00:00
hacking Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00
ipam Remove unnecessary executable permission 2015-08-01 05:16:32 +00:00
notifiers Switch to oslo_utils.uuidutils 2015-06-22 11:06:18 +00:00
plugins Merge "Python 3: fix test_ovs_tunnel" 2015-08-04 16:52:00 +00:00
quota Add plural names for quota resources 2015-07-28 11:55:04 -07:00
scheduler Remove duplicate DHCP agent registration in unit test 2015-07-24 15:20:05 -04:00
services Decompose Apic ML2 mechanism driver 2015-07-24 19:32:49 +00:00
tests Merge "Different approach to indicate failure on SystemExit" 2015-07-16 06:57:16 +00:00
__init__.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
_test_extension_portbindings.py Context: Remove logic for read_deleted and deprecate it 2015-06-09 13:50:03 -07:00
database_stubs.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
dummy_plugin.py Remove lingering traces of q_ 2015-07-07 17:04:44 -04:00
extension_stubs.py Remove get_namespace from API extensions 2015-06-15 09:17:32 -04:00
test_auth.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
test_context.py Python 3: fix test_context 2015-07-27 16:57:08 +02:00
test_manager.py Flavor Framework implementation 2015-07-16 09:07:41 -07:00
test_policy.py Consume oslo.policy 2015-06-09 17:07:13 +00:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Switch to oslo.service 2015-06-29 13:20:55 +03:00
testlib_api.py Improve fixture usage. 2015-07-01 14:53:48 +12:00