Switch over to neutron-lib for OVO common_types.
Also update lower constraints and requirements to pass gates
Depends-On: https://review.opendev.org/#/c/664646/
Change-Id: I8d3175f95f567a4ca4ae9d06de09a57ea4656b6a
This patch includes various changes in order to get the functional
job gate for the neutron-classifier to work as expected.
Previous patch includes changes made to openstack tox py36 and py37
jobs. Link to merged patch: https://review.opendev.org/#/c/672725/
Due to the dependency on neutron-lib the patch had to remove
the failing functional job from the gate in order to get merged.
Changes Include:
- removes files that were used by the Zuul v2 functional test
and are not needed anymore.
- adds dsvm-functional tox.ini changes as carried out by
https://review.opendev.org/#/c/674336/ patch.
- remove unneeded extra job variables, the defaults are just fine
and include these settings
- make test_path overridable in .stestr.conf
- make job voting
Change-Id: I180ac6df807864a4fd2b129ab525c7e78bca67c0
Co-Authored-By: Andreas Jaeger <aj@suse.com>
This patch updates the testing of the neutron classifier
repository to be zuulv3 compliant. Changes include:
- Added lower-constraints.txt file.
- Added clarifying comments to requirements.txt including
neutron-lib-current update.
- Removed playbooks/legacy yaml files.
- Modified coverage package version.
- Added to testenv, testenv:dev in tox.ini
This patch is part of the neutron-sibling-setup
as documented in [1]. Changes were also based on zuulv3
opencontrail patch [2] as well as updates made to
x/vmware-nsx project.[3]
[1] https://etherpad.openstack.org/p/neutron-sibling-setup
[2] https://review.opendev.org/#/c/624782/
[3] https://review.opendev.org/#/c/670134/
Change-Id: I46ac45d97a5af24ae234f11952d6883cd3088ff7
Changes include:
-Replace openstack.org link with opendev.org
-Delete pylint
-Change way of adding neutron in the requirements.
-Replace common_db_mixin with 'object'. [Reference:] 957eca96f4
-Update Sphinx requirement version
Change-Id: Ie4eaa32819e04ec8c486e71430b29912e06fab29
Signed-off-by: Sara Nierodzik <sara.nierodzik@intel.com>
Updates to Openstack Client to reflect current
state of Neutron Classiifier classifications
and comply with pep8 standards. Tests included but incomplete
until further changes to core code takes place.
Change-Id: I33165dcf3519912cdbb975366cdc5324d91f3fd7
Co-Authored-By: Nakul Dahiwade <nakul.dahiwade@intel.com>
- All classification types expressed in a single
resource.
- Classifications can be grouped inside classification
groups resource which can be consumed by other
neutron resources.
- A list of supported classifications exists through
classification type list resource.
- Switch to stestr
Change-Id: I05acaf6419c294692ff270ad4a488a5e68749d67
Co-Authored-By: David Shaughnessy <david.shaughnessy@intel.com>
Co-Authored-By: Nakul Dahiwade <nakul.dahiwade@intel.com>
- Introducing database models and oslo versioned objects for
classification resources used by the common classification
framework service plugin.
- Add playbooks, post_test_hook, gate_hook,
modify requirements, .zuul.yaml for gate.
Add migration test, fix models and migration scripts.
- Change ClassificationType decorator to NeutronObjectRegistry,
add get_objects method.
Remove ClassificationType from object version test,
Add get_bound_tenant_ids to ClassificationGroups
Add openstack-python35-jobs-neutron to zuul.
Change-Id: I41d5b399352b47d74000596e6518e199d36709a7
Co-Authored-By: David Shaughnessy <david.shaughnessy@intel.com>
Co-Authored-By: Nakul Dahiwade <nakul.dahiwade@intel.com>
Co-Authored-By: John Hinman <john.hinman@intel.com>
- Adds modifications to tox.ini to enable functional testing
- adds the functional sub directory to the tests folder
- adds .zuul file to enable the Gate to start functional testing.
Change-Id: Id40c0feba1741328027bd285e10aa8899b4a12b9
- Introducing database migrations for the neutron common
classification framework.
Change-Id: Iceca7c10aaec7a8566d994ed1acd057818e54d5d
Co-Authored-By: David Shaughnessy <david.shaughnessy@intel.com>
This is essentially a maintenance patch to make the neutron-classifier
repo pass the gate again, and add a few bits and pieces before the
Common Classification Framework starts to be applied.
Change-Id: I6f075363aeb06820c3ba3262454c5820b1c16bef
This patch implements API's for
* Saving firewall rules in common classifier model.
* Retrieving firewall rule from the common classfier db.
Change-Id: I64ff4ce875fd909d57375d1c601dc61e86c79f40
Co-Authored-By: Mohankumar <mohankumar.n@huawei.com>
The branch for if classifier_type is model.Ipv4Classifier was
not covered by a unit test, so a typo slipped through. My bad.
Change-Id: Id1ec95d6131226ee8a0055e35f98c24b846499a4
* For clarity, don't abbreviate destination to dst.
* Add support for source_port_range_max and source_port_range_max kwargs
Change-Id: I2ed3bc273a08fe0ec6529432c2416fff409fd309
Since this database is in memory there seems to be an interaction with
tox and how it sets up and runs tests. So let's just create it each time
This reverts commit b32284e787.
Change-Id: I56be0354eae2028f50efe6d5e8034dcdb1766b54
* The Security Group Rule ethertype only has two values: 4 or 6, but the
actual Ethernet protocol specifies Ethertype as a two-octet field. So
lets fix it up and handle the conversion.
* Create a DirectionClassifier that can store INGRESS, EGRESS
and BIDIRECTIONAL directives
* Add get_classifier_group API method to query the DB for a
ClassifierGroup
Change-Id: Ib7d5d83b0c06ad326d100d55a506262dbfc520b3
Begin to follow the pattern of passing in a context, that contains a
session which is used to conduct database transactions and operations.
Change-Id: I4a0cfe45bf51d5548eb9e2fd0206cb51b44320e8