]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
ofagent: Have a thin driver module
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Mon, 9 Mar 2015 07:47:29 +0000 (16:47 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Tue, 10 Mar 2015 02:00:01 +0000 (02:00 +0000)
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

neutron/plugins/ml2/drivers/ofagent/__init__.py [new file with mode: 0644]
neutron/plugins/ml2/drivers/ofagent/driver.py [new file with mode: 0644]
setup.cfg

diff --git a/neutron/plugins/ml2/drivers/ofagent/__init__.py b/neutron/plugins/ml2/drivers/ofagent/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/neutron/plugins/ml2/drivers/ofagent/driver.py b/neutron/plugins/ml2/drivers/ofagent/driver.py
new file mode 100644 (file)
index 0000000..351efd4
--- /dev/null
@@ -0,0 +1,19 @@
+# Copyright (C) 2015 VA Linux Systems Japan K.K.
+# Copyright (C) 2015 YAMAMOTO Takashi <yamamoto at valinux co jp>
+# 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
index f5390e0f28a0a43fbed4e1b726214818f45e0fd7..ae67545db22a4fae0d97134b377ffd657a7621a4 100644 (file)
--- 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