aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/onos_cluster/files
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-07-17 17:21:12 +0800
committerYifei Xue <xueyifei@huawei.com>2017-07-17 17:21:12 +0800
commitf99f3977b6ce67dc336bfd1ca614806f404f75c1 (patch)
tree4cb1668b724fefa9752f135a305372b7972580cd /deploy/adapters/ansible/roles/onos_cluster/files
parentc2cc1f592fa352dda5ea6600c9871659bfcfd2ef (diff)
Bug fix for onos sfc
Add the configuration of sfc driver in networking-sfc and networking-onos. Change-Id: I2f9345d2caa030960e707f15406cb22f6b525dc0 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/onos_cluster/files')
-rwxr-xr-xdeploy/adapters/ansible/roles/onos_cluster/files/driver.sh5
-rwxr-xr-x[-rw-r--r--]deploy/adapters/ansible/roles/onos_cluster/files/sfc_plugins.conf6
2 files changed, 11 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/onos_cluster/files/driver.sh b/deploy/adapters/ansible/roles/onos_cluster/files/driver.sh
new file mode 100755
index 00000000..97706dbe
--- /dev/null
+++ b/deploy/adapters/ansible/roles/onos_cluster/files/driver.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+sed -i '/\[networking_sfc.sfc.drivers\]/a onos = networking_onos.services.sfc.driver:OnosSfcDriver' /usr/local/lib/python2.7/dist-packages/networking_sfc-3.0.0.dist-info/entry_points.txt
+
+sed -i '/\[networking_sfc.flowclassifier.drivers\]/a onos = networking_onos.services.flowclassifier.driver:OnosFlowClassifierDriver' /usr/local/lib/python2.7/dist-packages/networking_sfc-3.0.0.dist-info/entry_points.txt
diff --git a/deploy/adapters/ansible/roles/onos_cluster/files/sfc_plugins.conf b/deploy/adapters/ansible/roles/onos_cluster/files/sfc_plugins.conf
index ddef928d..a5049f61 100644..100755
--- a/deploy/adapters/ansible/roles/onos_cluster/files/sfc_plugins.conf
+++ b/deploy/adapters/ansible/roles/onos_cluster/files/sfc_plugins.conf
@@ -2,3 +2,9 @@
service_plugins = networking_sfc.services.sfc.plugin.SfcPlugin,networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin,onos_router
+[sfc]
+drivers = onos
+
+[flowclassifier]
+drivers = onos
+