neutron/neutron/tests/unit/db
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
..
metering COMMON_PREFIXES cleanup - patch 1/5 2015-07-02 17:05:27 -07:00
quota Create packages for quota modules 2015-07-28 11:55:01 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agents_db.py Add logging of agent heartbeats 2015-06-29 05:40:26 +04:00
test_allowedaddresspairs_db.py Fix duplicate entry catch for allowed address pairs 2015-07-10 18:55:58 +08:00
test_db_base_plugin_v2.py Merge "Prevent update alloc pool over existing gateway ip" 2015-08-04 00:44:18 +00:00
test_dvr_mac_db.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
test_ipam_backend_mixin.py Use sets to calculate added/original/removed ips 2015-06-23 11:35:12 +03:00
test_ipam_pluggable_backend.py Cleanup IPAM tests 2015-07-27 16:29:53 +03:00
test_l3_dvr_db.py l3_db: not use L2 plugin _get_port unnecessarily 2015-08-13 18:37:49 -07:00
test_l3_hamode_db.py Update port bindings for master router 2015-07-23 15:15:18 +03:00
test_migration.py [neutron-db-manage] revision: properly bootstrap a new branch 2015-07-26 21:00:23 -04:00
test_securitygroups_db.py Fix callback registry notification for security group rule 2015-06-22 17:19:44 +03:00