neutron/neutron/objects
Rodolfo Alonso Hernandez d1fa2f104d Use the DB object when listing the SG rules
When listing the security group rules, the DB object can be used
instead the OVO. That will save the conversion time. In a
development environment with 1000 SG rules, the DB query took around
100 ms and the same time to load the OVOs from the DB objects.

The ``NeutronDbObject.get_objects`` now can return the DB objects
without converting them to OVO if "return_db_obj=True".

Trivial-Fix

Change-Id: I245032cf99b1b042226703f5ddb4625e176924c5
2021-11-02 16:33:18 +00:00
..
db Improve "objects.db.api.count" method 2021-04-28 07:50:56 +00:00
extensions use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
logapi use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
plugins Randomize segmentation ID assignation 2021-03-24 13:56:09 +00:00
port [DVR] Send allowed address pairs info to the L3 agents 2021-05-18 12:58:23 +02:00
qos Add API extension for QoS minimum pps rule 2021-09-29 12:27:30 +02:00
README.rst Objects: Add README for neutron/objects directory tree 2016-10-07 15:12:20 +00:00
__init__.py Bump pylint version to support python 3.8 2020-08-06 16:00:30 +02:00
address_group.py Allow sharing of address groups via RBAC mechanism 2021-03-01 18:28:31 -06:00
address_scope.py Improve AddressScope.get_bound_tenant_ids method 2021-04-12 17:49:46 +00:00
agent.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
auto_allocate.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
base.py Use the DB object when listing the SG rules 2021-11-02 16:33:18 +00:00
conntrack_helper.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
flavor.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
floatingip.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
ipam.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
l3_hamode.py Finish the new DB engine facade migration 2020-11-24 09:20:35 +00:00
l3agent.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
metering.py Add source_ip_prefix and destination_ip_prefix to metering label rules 2020-09-29 09:06:03 -03:00
network.py Remove redundant implementation of "get_projects" in NetworkRBAC 2020-04-17 08:48:15 +00:00
network_segment_range.py Make phynet paramter also is optional when network_segment_range enabled 2021-05-16 09:10:59 +00:00
port_forwarding.py In OVO PortForwarding, retrieve FIP info from db_obj 2021-01-16 00:06:49 +00:00
ports.py Merge "Remove FIP agent's gw port when L3 agent is deleted" 2021-06-24 06:38:48 +00:00
provisioning_blocks.py [OVO] Switch to use own registry 2017-11-22 17:44:22 +01:00
quota.py Do not fail when releasing a quota reservation 2021-08-25 13:18:17 +00:00
rbac.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
rbac_db.py Revert "Set system_scope='all' in elevated context" 2021-06-15 10:29:20 +02:00
router.py Get only FIP ID on network delete 2021-04-13 11:27:14 +03:00
securitygroup.py Add shared field to SG API response and filter 2021-10-07 14:49:19 -05:00
servicetype.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
stdattrs.py Use neutron-lib standard_attr 2021-09-15 09:19:26 +00:00
subnet.py Revert "Set system_scope='all' in elevated context" 2021-06-15 10:29:20 +02:00
subnetpool.py Revert "Set system_scope='all' in elevated context" 2021-06-15 10:29:20 +02:00
tag.py Use neutron-lib standard_attr 2021-09-15 09:19:26 +00:00
trunk.py Provide object tagging using the tag plugin 2021-01-18 11:57:39 +00:00

README.rst

Neutron Objects

Directory

This directory is designed to contain all modules which have objects definitions shipped with core Neutron. The files and directories located inside of this directory should follow the guidelines below.

Structure

The Neutron objects tree should have the following structure:

  • The expected directory structure is flat, except for the ML2 plugins. All ML2 plugin objects should fall under the plugins subdirectory (i.e. plugins/ml2/gre_allocation).
  • Module names should use singular forms for nouns (network.py, not networks.py).