From edcda156a0be5bed91c66a4c13d230b1a4e29122 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 9 Mar 2015 16:47:29 +0900 Subject: [PATCH] ofagent: Have a thin driver module It seems preferable to have a thin driver module rather than directly referencing an external module in setup.cfg. This also introduces "ofagent" directory which can be used to put requirements.txt later. Closes-Bug: #1412653 Related: blueprint core-vendor-decomposition Change-Id: Id86ade4ae75dceb5ce4283869f42f4c0d1af7c4d --- .../plugins/ml2/drivers/ofagent/__init__.py | 0 neutron/plugins/ml2/drivers/ofagent/driver.py | 19 +++++++++++++++++++ setup.cfg | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 neutron/plugins/ml2/drivers/ofagent/__init__.py create mode 100644 neutron/plugins/ml2/drivers/ofagent/driver.py diff --git a/neutron/plugins/ml2/drivers/ofagent/__init__.py b/neutron/plugins/ml2/drivers/ofagent/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/neutron/plugins/ml2/drivers/ofagent/driver.py b/neutron/plugins/ml2/drivers/ofagent/driver.py new file mode 100644 index 000000000..351efd4df --- /dev/null +++ b/neutron/plugins/ml2/drivers/ofagent/driver.py @@ -0,0 +1,19 @@ +# Copyright (C) 2015 VA Linux Systems Japan K.K. +# Copyright (C) 2015 YAMAMOTO Takashi +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +from networking_ofagent.plugins.ml2.drivers import mech_ofagent + +OfagentMechanismDriver = mech_ofagent.OfagentMechanismDriver diff --git a/setup.cfg b/setup.cfg index f5390e0f2..ae67545db 100644 --- a/setup.cfg +++ b/setup.cfg @@ -172,7 +172,7 @@ neutron.ml2.mechanism_drivers = cisco_apic = neutron.plugins.ml2.drivers.cisco.apic.mechanism_apic:APICMechanismDriver l2population = neutron.plugins.ml2.drivers.l2pop.mech_driver:L2populationMechanismDriver bigswitch = neutron.plugins.ml2.drivers.mech_bigswitch.driver:BigSwitchMechanismDriver - ofagent = networking_ofagent.plugins.ml2.drivers.mech_ofagent:OfagentMechanismDriver + ofagent = neutron.plugins.ml2.drivers.ofagent.driver:OfagentMechanismDriver mlnx = neutron.plugins.ml2.drivers.mlnx.mech_mlnx:MlnxMechanismDriver brocade = neutron.plugins.ml2.drivers.brocade.mechanism_brocade:BrocadeMechanism fslsdn = neutron.plugins.ml2.drivers.freescale.mechanism_fslsdn:FslsdnMechanismDriver -- 2.45.2