From 193dc2117a1fb96d9fdd98258c1040775a33f033 Mon Sep 17 00:00:00 2001 From: chigang Date: Thu, 10 Aug 2017 10:40:11 +0800 Subject: Add dpdk plugin JIRA: COMPASS-550 add OVS-DPDK plugin, there are two roles in this plugin. 1. ins_dpdk is for dpdk installation and hugepages setting. 2. ins_ovs is for openvswitch installation. add dpdk scenario networking configuration example called "network_cfg_dpdk.yaml" Change-Id: Ifd8c1aadc218753f99bc26bb530e7cf9962ad8e3 Signed-off-by: chigang --- plugins/dpdk/roles/ins_ovs/templates/start_ovs_vswitchd.sh.j2 | 4 ++++ plugins/dpdk/roles/ins_ovs/templates/start_ovsdb_server.sh.j2 | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 plugins/dpdk/roles/ins_ovs/templates/start_ovs_vswitchd.sh.j2 create mode 100644 plugins/dpdk/roles/ins_ovs/templates/start_ovsdb_server.sh.j2 (limited to 'plugins/dpdk/roles/ins_ovs/templates') diff --git a/plugins/dpdk/roles/ins_ovs/templates/start_ovs_vswitchd.sh.j2 b/plugins/dpdk/roles/ins_ovs/templates/start_ovs_vswitchd.sh.j2 new file mode 100644 index 00000000..c1504177 --- /dev/null +++ b/plugins/dpdk/roles/ins_ovs/templates/start_ovs_vswitchd.sh.j2 @@ -0,0 +1,4 @@ +#!/bin/bash +export DB_SOCK=/usr/local/var/run/openvswitch/db.sock +sudo ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true +sudo ovs-vswitchd unix:$DB_SOCK --pidfile --detach diff --git a/plugins/dpdk/roles/ins_ovs/templates/start_ovsdb_server.sh.j2 b/plugins/dpdk/roles/ins_ovs/templates/start_ovsdb_server.sh.j2 new file mode 100644 index 00000000..8bc408b6 --- /dev/null +++ b/plugins/dpdk/roles/ins_ovs/templates/start_ovsdb_server.sh.j2 @@ -0,0 +1,4 @@ +#!/bin/bash +ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \ + --remote=db:Open_vSwitch,Open_vSwitch,manager_options \ + --pidfile --detach -- cgit 1.2.3-korg