aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/onos_cluster/files
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-01-24 04:04:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-24 04:04:36 +0000
commit667f37288ec38370c9bd5b463d3756ce4f28299d (patch)
tree5d26893c5a7d560d4bf1771b6690502926661611 /deploy/adapters/ansible/roles/onos_cluster/files
parent80a3a5e0f7cb3d555e07f1e940854624d320ffbd (diff)
parentf99f3977b6ce67dc336bfd1ca614806f404f75c1 (diff)
Merge "Bug fix for onos sfc" into stable/danubestable/danube
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 0000000..97706db
--- /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 ddef928..a5049f6 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
+