neutron/neutron/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 Python 3: do not index dict_values objects 2015-07-24 21:00:52 +02:00
migration Move 1c844d1677f7 expand migration to appropriate branch 2015-08-02 23:50:22 -07:00
quota Create packages for quota modules 2015-07-28 11:55:01 -07:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
address_scope_db.py Support Basic Address Scope CRUD as extensions 2015-07-02 13:49:06 +05:30
agents_db.py Add logging of agent heartbeats 2015-06-29 05:40:26 +04:00
agentschedulers_db.py Python 3: Use '//' instead of '/' 2015-07-30 15:40:29 +09:00
allowedaddresspairs_db.py Fix duplicate entry catch for allowed address pairs 2015-07-10 18:55:58 +08:00
api.py Add oslo db retry decorator to non-CRUD actions 2015-07-16 05:19:45 -07:00
common_db_mixin.py Network RBAC DB setup and legacy migration 2015-07-16 05:48:10 -07:00
db_base_plugin_common.py Keep dns nameserver order consistency 2015-07-29 17:13:44 +08:00
db_base_plugin_v2.py Prevent update alloc pool over existing gateway ip 2015-07-29 23:59:56 -05:00
dvr_mac_db.py Port help text for dvr_base_mac from neutron.conf 2015-07-20 18:01:31 +00:00
external_net_db.py ml2: remove stale _filter_nets_l3 in get_networks 2015-01-20 15:13:20 -08:00
extradhcpopt_db.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
extraroute_db.py Strip unnecessary overrides in extraroute_db mixin 2015-04-17 04:18:56 -07:00
flavors_db.py Flavor Framework implementation 2015-07-16 09:07:41 -07:00
ipam_backend_mixin.py Merge "Introduce usage data tracking for Neutron" 2015-07-31 06:57:44 +00:00
ipam_non_pluggable_backend.py Add Pluggable IPAM Backend Part 2 2015-07-24 10:31:39 +03:00
ipam_pluggable_backend.py Add Pluggable IPAM Backend Part 2 2015-07-24 10:31:39 +03:00
l3_agentschedulers_db.py Fixed L3 agent manual scheduling for HA routers 2015-07-13 13:56:43 +00:00
l3_attrs_db.py Add L3 VRRP HA base classes 2014-09-10 12:06:13 +00:00
l3_db.py l3_db: not use L2 plugin _get_port unnecessarily 2015-08-13 18:37:49 -07:00
l3_dvr_db.py _get_dvr_sync_data: Return a list, rather than dict_values for python3 2015-08-04 18:50:40 +09:00
l3_dvrscheduler_db.py Move DVR related method to proper class 2015-07-09 19:48:24 +03:00
l3_gwmode_db.py Allow to define enable_snat default value 2015-05-07 00:10:50 +02:00
l3_hamode_db.py Merge "Update port bindings for master router" 2015-08-04 14:08:03 +00:00
l3_hascheduler_db.py Expose ha_state per router to agent binding via API 2015-03-23 17:56:36 -04:00
model_base.py Python 3: use next() instead of iterator.next() 2015-06-09 20:26:09 +02:00
models_v2.py Ensure non-overlapping cidrs in subnetpools with galera 2015-07-31 09:33:52 +00:00
netmtu_db.py Move network MTU from core REST API to extension API 2015-04-02 12:48:56 -04:00
portbindings_base.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
portbindings_db.py Remove unnecessary 'IN vs ==' sql query branches 2015-03-21 09:39:06 -07:00
portsecurity_db.py Merge "Add portsecurity extension support" 2015-03-18 16:48:40 +00:00
portsecurity_db_common.py portsecurity_db_common: Access db columns in a consistent way 2015-07-06 11:22:18 +09:00
quota_db.py Create packages for quota modules 2015-07-28 11:55:01 -07:00
rbac_db_models.py Network RBAC DB setup and legacy migration 2015-07-16 05:48:10 -07:00
securitygroups_db.py Move update_security_group_on_port to SecurityGroupDbMixin 2015-07-09 07:50:48 +00:00
securitygroups_rpc_base.py Fix handling of port-range-min 0 in secgroup RPC and agent 2015-07-23 17:28:04 +08:00
servicetype_db.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
sqlalchemyutils.py Python 3: Use six.moves.range 2015-05-19 17:32:17 +02:00
vlantransparent_db.py Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00