73 Commits

Author SHA1 Message Date
Henry Gessau
1cb77081b0 TrivialFix: Fix a bad indentation in a doc file
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
2016-06-09 16:22:11 -04:00
Jenkins
8ff5a63eff Merge "Add subport validator for vlan-aware-vms" 2016-06-09 13:32:41 +00:00
Gary Kotton
e336158524 Fix exception for invalid type
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
2016-06-02 04:20:14 -07:00
Jenkins
0db5c13fc3 Merge "Remove unused oslo.service requirement" 2016-06-01 22:01:32 +00:00
Armando Migliaccio
f54a138fbd Add subport validator for vlan-aware-vms
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
2016-06-01 20:57:45 +00:00
OpenStack Proposal Bot
ea2bcdd4e5 Updated from global requirements
Change-Id: I384d0c281ae78f221b9a3b5f42ac8ccfc1075f1c
2016-05-30 00:15:32 +00:00
Bertrand Lallau
445e74dcaa Remove unused oslo.service requirement
Change-Id: Id36a3b22feb10c69ff32b1ebd8c3534e91d545de
2016-05-25 17:16:34 +02:00
Jenkins
45aea71d7d Merge "Remove ICMPV6_ALLOWED_TYPES" 2016-05-17 02:43:21 +00:00
Jenkins
6c0a933c56 Merge "Add IPv6_LLA_PREFIX constant" 2016-05-17 02:43:15 +00:00
OpenStack Proposal Bot
4dcbeb2137 Updated from global requirements
Change-Id: Ib4aff2d3abab99ff0543d0ed4f87897e998ee858
2016-05-16 15:58:45 +00:00
Dustin Lundquist
d70cb29cd7 Add IPv6_LLA_PREFIX constant
Change-Id: I950eb6b0bed76a166a450d0780f36cb2392c4e6b
2016-05-06 15:34:53 -07:00
Dustin Lundquist
c09ff0b696 Remove ICMPV6_ALLOWED_TYPES
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
2016-05-06 22:14:25 +00:00
Brandon Logan
d33b62b0e7 Maintain ATTR_NOT_SPECIFIED constant with deepcopy
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>
2016-05-02 16:17:01 -05:00
Dustin Lundquist
da9870c536 Add constants for additional ICMPv6 types
Introducing additional constants for ICMPv6 types so integer literal
types can be removed in Neutron.

Change-Id: I9caa234304fb621aa9ec0ab8156968b746a6b24a
2016-04-28 14:54:44 -05:00
Akihiro Motoki
55498ff6a2 Define legacy ICMPv6 protocol name 'icmpv6' for backward compaty
Follow-up patch of https://review.openstack.org/#/c/294460/

Change-Id: Iec9a48cef39c3e35de49ef3f62182e50eebbe3db
Related-Bug: #1558774
2016-04-23 17:39:47 +09:00
Jenkins
1694d4c3b3 Merge "Remove config module" 2016-04-15 17:44:35 +00:00
OpenStack Proposal Bot
3378a67041 Updated from global requirements
Change-Id: I82ac39ad622f1059aaa56a5964efbfd988c86307
2016-04-13 12:45:30 +00:00
Henry Gessau
1391ab2bd9 Remove config module
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
2016-04-12 11:58:29 -04:00
Jenkins
53e9b97c92 Merge "Updated from global requirements" 2016-04-08 17:57:11 +00:00
Jenkins
72d04e4b21 Merge "Remove fake_consume_in_threads dummy method" 2016-04-08 17:26:54 +00:00
OpenStack Proposal Bot
f39937f798 Updated from global requirements
Change-Id: Ic1c70e3fa8db8b5a998e1564bf0edbbc6fd424c9
2016-04-08 11:45:38 +00:00
Jenkins
24052ed079 Merge "Revert "Add Collector Agent type string"" 2016-04-08 03:02:43 +00:00
Armando Migliaccio
25b52deb41 Revert "Add Collector Agent type string"
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
2016-04-07 23:21:39 +00:00
Gary Kotton
68e8441dc9 Remove fake_consume_in_threads dummy method
That is no longer used - please see https://review.openstack.org/#/c/302997/

Change-Id: Ia0a75f47a5cad206c41043bac26dae928d985ca1
2016-04-07 10:22:45 -07:00
OpenStack Proposal Bot
a62bdbb8ea Updated from global requirements
Change-Id: Ibc6161281a734e9af24eedc7fc009b0a8e1fbd53
2016-04-05 13:39:38 +00:00
Jenkins
98a2726b4f Merge "New device owner flag for HA router interface" 2016-03-30 01:05:02 +00:00
Henry Gessau
b76a35a233 Add pagination helpers
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
2016-03-18 21:41:41 -04:00
Jenkins
bc9b88ca0e Merge "Add Collector Agent type string" 2016-03-14 20:00:42 +00:00
Jenkins
8c116fa23b Merge "Add in missing constants" 2016-03-14 20:00:36 +00:00
Jenkins
e245ab6dba Merge "Remove unused pngmath Sphinx extension" 2016-03-14 19:38:08 +00:00
venkata anil
0440878cc6 New device owner flag for HA router interface
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
2016-03-14 15:50:49 +00:00
Doug Wiegley
4b17f1da1a Fix 'import neutron' hacking check
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
2016-03-04 14:28:57 -07:00
Gary Kotton
b7dbdb151f Add in missing constants
Commit 34d4d46c40b5204ffaf8c8a3e2464a19f9d8b2cd and
commit 3e4e932a4d9dbfac908cf03c221b350e645d8b17 added
constants that are required for the migration to neutron-lib (for
example the OVN project).

Change-Id: Id621ace25b1f9ed5bc41d9175a0d10f27fbbb700
2016-03-01 04:55:10 -08:00
Andreas Jaeger
8704bae76f Remove unused pngmath Sphinx extension
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.

Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
2016-02-29 19:55:59 +01:00
Jenkins
999828a180 Merge "Callbacks: add precommit support" 2016-02-27 01:52:48 +00:00
Jenkins
ac7e6e240a Merge "Callbacks: add in missing callback resources" 2016-02-27 01:52:41 +00:00
OpenStack Proposal Bot
0224e79fb2 Updated from global requirements
Change-Id: Ia5cd4c4223ea52f19bd62d7f6e9e2f9477ee1983
2016-02-26 01:50:15 +00:00
Gary Kotton
5a49304544 Callbacks: add precommit support
Commit c24e9da2f82676d9b9d8c28018bf49c8a294121b added this support.
This ports that code to the lib.

Change-Id: I2578224f5a3bef46dfedb267fb5b944bec0b296d
2016-02-15 21:55:06 -08:00
Andreas Scheuring
d1b85ca351 Add constants for macvtap agent
Change-Id: Ic3dfe17499c0ef23c0a053c6320af56195374ce8
Partial-Bug: #1480979
2016-02-15 16:02:13 +01:00
Gary Kotton
a9ad2f8c8c Callbacks: add in missing callback resources
Commit e1df8b54d27680eb3351b20e3d3259b8179c9dac added in a
new resource. This moves that resoures to neutron-lib.

Change-Id: I488aa63cf70ff8551d0f2d33df676aa6049fa819
2016-02-14 07:12:33 -08:00
RYAN D. MOATS
6d82b903b1 Add Collector Agent type string
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>
2016-02-11 10:29:24 -06:00
Doug Wiegley
be3795fd70 Add a hacking check against importing neutron
Partially-Implements: blueprint neutron-lib
Change-Id: I90c563f5b2e7a66bf47930bffbba01100ff0b574
2016-02-08 20:54:20 +00:00
Doug Wiegley
8b92af6f14 Lib specific hacking rules
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
2016-02-08 13:53:10 -07:00
Jenkins
52b6ecbd7b Merge "Add popular IP protocols for security group" 2016-02-05 21:52:23 +00:00
Jenkins
d22daa2a32 Merge "Update translation setup" 2016-02-02 08:00:03 +00:00
Doug Wiegley
285236706a Move some common test and framework goo into neutron-lib
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
2016-01-29 23:45:49 -07:00
Akihiro Motoki
ef3bfed0ea Update translation setup
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
2016-01-29 07:08:35 +09:00
Jenkins
50546e95ec Merge "Replace deprecated library function os.popen() with subprocess" 2016-01-27 01:48:33 +00:00
Jenkins
30a745250d Merge "API validators and converters" 2016-01-16 01:56:13 +00:00
Paul Michali
7d9980f7ca API validators and converters
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
2016-01-15 12:44:09 +00:00