e382e7611f
Implements an L3 service plugin, apic_aim_l3, that, in conjunction with the apic_aim mechanism driver, maps each Neutron router to an AIM Contract and ContractSubject whose DNs and status are exposed via extended attributes similar to those on the core Neutron resources. An "any" Filter and FilterEntry are created per-tenant, and referenced in this contract, allowing all traffic from EPGs providing and consuming this contract to be routed. The add_router_interface and remove_router_interface methods are stubs that will be implemented in the next patch set. They will manage the mapping of router interfaces to AIM Subnets, along with having the default EPGs associated with those interfaces provide and consume the router's Contract. The corresponding GBP policy driver's extension is renamed apic_aim_gbp for consistency with the apic_aim and apic_aim_l3 extensions at the Neutron level, and all extensions are now in the gbpservice.neutron.extensions module. The GBP policy driver's unit tests are updated to account for the Filter and FilterEntry resources created by the mechanism driver. The apic_aim unit tests wipe the AIM DB in tearDown, and use the aci_integration_manager branch of the apicapi repo. The GBP devstack plugin, when ENABLE_APIC_AIM=True, configures neutron to use the apic_aim_l3 service plugin, and installs the aci_integration_manager branch of the apicapi repo. Change-Id: I1b7f0c80e66d55d58c27fe9e4cb461f62aec3c42
15 lines
562 B
Plaintext
Executable File
15 lines
562 B
Plaintext
Executable File
NEUTRON_CREATE_INITIAL_NETWORKS="False"
|
|
|
|
ENABLE_APIC_AIM=${ENABLE_APIC_AIM:-False}
|
|
|
|
if [[ $ENABLE_APIC_AIM = True ]]; then
|
|
echo_summary "Overriding defaults for apic_aim"
|
|
|
|
Q_PLUGIN=${Q_PLUGIN:-ml2}
|
|
Q_ML2_TENANT_NETWORK_TYPE=${Q_ML2_TENANT_NETWORK_TYPE:-opflex}
|
|
Q_ML2_PLUGIN_TYPE_DRIVERS=${Q_ML2_PLUGIN_TYPE_DRIVERS:-local,vlan,opflex}
|
|
Q_ML2_PLUGIN_MECHANISM_DRIVERS=${Q_ML2_PLUGIN_MECHANISM_DRIVERS:-apic_aim}
|
|
Q_ML2_PLUGIN_EXT_DRIVERS=${Q_ML2_PLUGIN_EXT_DRIVERS:-apic_aim,port_security}
|
|
ML2_L3_PLUGIN=${ML2_L3_PLUGIN:-apic_aim_l3}
|
|
fi
|