neutron/neutron/objects
Rodolfo Alonso Hernandez 79e8230e39 Filter subnet by segment ID or None
In "_query_filter_by_fixed_ips_segment", the subnet query should be
filtered by segment ID if exists, or None otherwise.

The "segment_id" field (from the "subnet" DB register) is a string.
As reported in the related bug, PostgreSQL does not accept to compare
this field with a boolean value ("false"). This patch avoids the
previous situation where the DB WHERE statement was trying to compare
a string and a boolean:

  operator does not exist: character varying = boolean
  LINE 5: WHERE anon_1.subnets_segment_id = false
  No operator matches the given name and argument type(s). You might \
    need to add explicit type casts.

Change-Id: I1ff29eb45c6663885c2b8a126a3669e75b920c98
Closes-Bug: #1869034
2020-03-26 08:53:04 +00:00
..
db remove the neutron.db._model_query module 2019-01-25 08:55:25 -07: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 Fix queries to retrieve allocations with network_segment_range 2020-02-28 12:34:13 +00:00
port use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
qos use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
README.rst Objects: Add README for neutron/objects directory tree 2016-10-07 15:12:20 +00:00
__init__.py Use dirname in object recursive import 2017-04-20 04:35:10 -07:00
address_scope.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01: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 object standardattributes from neutron-lib 2019-06-12 13:57:00 -06: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 use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
l3agent.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
metering.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
network.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
network_segment_range.py Fix queries to retrieve allocations with network_segment_range 2020-02-28 12:34:13 +00:00
port_forwarding.py Add description field to portforwarding NAT rules 2020-01-22 11:19:55 -03:00
ports.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
provisioning_blocks.py [OVO] Switch to use own registry 2017-11-22 17:44:22 +01:00
quota.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
rbac.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
rbac_db.py Fix list security groups performance with RBAC 2019-07-07 17:44:56 -05:00
router.py Ensure there is always at most 1 dvr fip gw port per agent and network 2020-02-07 08:32:33 +00:00
securitygroup.py Merge "Support for stateless security groups" 2020-03-04 14:16:34 +00:00
servicetype.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
stdattrs.py use object standardattributes from neutron-lib 2019-06-12 13:57:00 -06:00
subnet.py Filter subnet by segment ID or None 2020-03-26 08:53:04 +00:00
subnetpool.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
tag.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
trunk.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01: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).