group-based-policy/gbpservice/tests
Robert Kukura 9719f751d2 [AIM] Validation/Repair/Migration Tool
Adds validation and repair framework that calls into mechanism, policy
and SFC drivers to validate mappings to Neutron resources and to AIM
resources. The mappings from all standard Neutron resources to AIM are
currently handled. New unit tests are provided for validation of each
resource, and validation calls are added to several existing unit
tests.

A simple command line interface is used to perform validation,
optionally repairing invalid state. This is run using 'gbp-validate
<neutron-server args> [--repair]'. The same arguments that are passed
to specify the configuration of neutron-server must be passed to
gbp-validate.

Validation of GBP and SFC resources and of SVI networks is not yet
implemented. Attempting to validate deployments where these resources
exist intentionally fails, even when repair is enabled, so that valid
deployments are not corrupted. Proper validation of these resources
will be addressed in followup patches.

For isomorphic address scopes with a non-pre-existing VRF, the VRF's
display name currently depends on the order in which the address
scopes were created. This will be addressed in a followup patch.

EPG domain association, static paths, and other aspects of port
binding are not yet validated. This will be addressed in a followup
patch.

Migration from the old APIC plugin to the unified plugin will require
associating existing subnets with subnetpools and rebinding all port,
which will also be addressed in a followup patch.

A simply neutron_aim exercise script is added to the AIM gate job that
runs gbp-validate with Neutron resources. Once validation of GBP
resources is implemented, similar gbp-validate calls will be added to
the gbp_aim exercise script.

(cherry picked from commit 61824cd363)

Conflicts:
	gbpservice/neutron/services/grouppolicy/drivers/cisco/apic/aim_mapping.py
	gbpservice/neutron/services/grouppolicy/group_policy_driver_api.py
	gbpservice/neutron/services/grouppolicy/plugin.py
	gbpservice/neutron/services/grouppolicy/policy_driver_manager.py
	gbpservice/neutron/services/sfc/aim/sfc_driver.py
	gbpservice/tests/contrib/functions-gbp

Change-Id: I0c3fe9e2629f76ecca8b3c8a93f9534b2d946e14
2018-05-22 16:49:30 -04:00
..
contrib [AIM] Validation/Repair/Migration Tool 2018-05-22 16:49:30 -04:00
functional Adding GBP integration and functional gate 2015-03-28 12:36:53 -07:00
__init__.py Renaming gbp package to gbpservice 2014-12-31 19:13:19 -08:00
base.py Aligning with liberty dependencies 2016-01-06 12:26:55 -08:00
test_gbp.py Renaming gbp package to gbpservice 2014-12-31 19:13:19 -08:00