The doc build fails locally because it treats warnings as errors.
(In the gate, treating warnings as errors is waiting for [1].)
[1] https://review.openstack.org/229951
Change-Id: I84ab0de7a89dca1d53d0a5157d83aff0a1c31d95
There were two problems:
1. The exception did not have a translation
2. KeyError does not receive parameters (it is not a log message)
TrivialFix
Change-Id: If8045c955731b823f776f8a75c7d18819e2ff243
This patch introduces a new validator method for a list of trunk
subports.
A subport input is defined by a ternary tuple of 'port_id' and
optionally 'segmentation_id' and 'segmentation_type'. If the
segmentation information is specified, both type and id must be
present; port_id must be a valid UUID and unique within the list,
and the same goes for segmentation id. More implementation specific
validations are deferred to the plugin layer.
The validator may find use in other projects besides 'neutron' alone
and thus is contributed in neutron-lib sooner rather than later.
Alternatively local validators should be supported to avoid modifying
the module variable as reported in bug 1584237.
Partially-implements: blueprint vlan-aware-vms
Change-Id: Ic04c547a75a7851d268ec6121eceaf0be9ca3586
We can do this now quickly because it is not used outside of the
neutron core tree yet:
http://codesearch.openstack.org/?q=ICMPV6_ALLOWED_TYPES
Why? Because ICMPV6_ALLOWED_TYPES is not a "constant" -- it is more
like a policy. It turns we need to change the list of allowed ICMPv6
types. This is being taken care of by
https://review.openstack.org/310954
Change-Id: I81f5546251efe6cef1f79a7889cd9b15369d7f79
ATTR_NOT_SPECIFIED needs to always remain the same value, but
deepcopy will instantiate a new object() if it encounters
ATTR_NOT_SPECIFIED. This ensures any deepcopy of a dict that
includes ATTR_NOT_SPECIFIED will always return the same instantiation
of object.
Change-Id: I9685dfff24e36992e90919bd7c2be2cda6c075f3
Closes-Bug: #1577571
Co-Authored-By: Kevin Benton <kevin@benton.pub>
Introducing additional constants for ICMPv6 types so integer literal
types can be removed in Neutron.
Change-Id: I9caa234304fb621aa9ec0ab8156968b746a6b24a
Remove the config.py module because:
- config options in lib should wait for RFE bug 1563069
- set_db_defaults() used only for tests
- setup_logging() should not be done by lib
Change-Id: Icdcb2b8f98887edff7809a6a6de7f239bdfe2ff9
Instrumentation work from regxboi has stalled. For what we know this
feature may never materialize, and if it does it may end up looking
drastically different.
This reverts commit 6d82b903b1663aeb3416d3693d7363ce15ca39ba.
Change-Id: Ieb12b10d5a8d8f128edfca6415ea5fcd6fd32b10
In neutron core we want to deprecate
neutron.db.sqlalchemyutils.paginate_query()
in favor of
oslo_db.sqlalchemy.utils.paginate_query()
However, the oslo.db method takes different arguments. So we provide
helpers for converting the arguments to the oslo.db format.
Change-Id: I6de2945c7ed2ab48c285824a62ee0da61b030589
Currently HA router interface port uses DEVICE_OWNER_ROUTER_INTF as
device owner(like normal router interface). So to check if a port is
a HA router interface port, we have to perform a DB operation.
Neutron server at many places may need check if a port is HA router
interface port and perform different set of operations, then it has
to access DB for this. Instead of that, if this information is
available as port's device owner, we can avoid DB access every time.
Partial-Bug: #1554519
Change-Id: I89b247bdac3aee1e47ee8a1c9f1cb2c385019a51
Turns out that the *name* of the first argument to your check function
matters, and must be 'logical_line' in this case. And fix the prefix
used in the error string.
Output now looks like:
neutron_lbaas/tests/base.py:19:1: N530 direct neutron imports not allowed
from neutron.db import servicetype_db as st_db
Change-Id: Ibdcf8ddc2ad832e031e3212392ad30364ceb3538
Commit 34d4d46c40b5204ffaf8c8a3e2464a19f9d8b2cd and
commit 3e4e932a4d9dbfac908cf03c221b350e645d8b17 added
constants that are required for the migration to neutron-lib (for
example the OVN project).
Change-Id: Id621ace25b1f9ed5bc41d9175a0d10f27fbbb700
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.
Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
Commit c24e9da2f82676d9b9d8c28018bf49c8a294121b added this support.
This ports that code to the lib.
Change-Id: I2578224f5a3bef46dfedb267fb5b944bec0b296d
Commit e1df8b54d27680eb3351b20e3d3259b8179c9dac added in a
new resource. This moves that resoures to neutron-lib.
Change-Id: I488aa63cf70ff8551d0f2d33df676aa6049fa819
Collector proof of concept [1] introduces a new agent type, which
needs to be reflected here.
[1] https://review.openstack.org/#/c/213474
Change-Id: Ifddd095b99b29937c607979097487a32ceea75cd
Partial-Bug: 1475736
Signed-off-by: RYAN D. MOATS <rmoats@us.ibm.com>
Starting with the most basic of the neutron rules. The neutron file will
include this one along with its own rules.
Partially-Implements: blueprint neutron-lib
Change-Id: Icda0c959c2ddbd1feada33e326f6c0fb0b23fc6a
Also fix an issue with ignoring some of the unit tests, moving them all
under the right subdir, and do not overload the tests.base name.
This commit used to contain the move of the rpc code, but that is now
in a child commit.
Partially-Implements: blueprint neutron-lib
Change-Id: Iae9fe970cd2a76305a74804d93a912e476060f1e
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.
This basically renames
neutron-lib/locale/neutron-lib.pot to
neutron_lib/locale/neutron_lib.pot. For this we need to update
setup.cfg.
Update also domain name in _i18n.py.
The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.
Change-Id: I73db7b37f5a44ae45c01ca16abccb41a5fbfbfe8
This brings over the validation and convert_to methods from Neutron.
Additional tests were added to improve coverage, and some supporting
methods were added for these.
Renamed validators to remove underscore, so that they can be imported
into neutron/api/v2/attributes.py.
Added devref docs to help developers in creating and using validators
and converters.
Change-Id: I81394dff69b816146e521bcd3e9641761178d6fd
Implements: blueprint neutron-lib