From 6ec3a89b379eb7c8e463d2d3f3240ec50ef15a3f Mon Sep 17 00:00:00 2001 From: Billy O'Mahony Date: Tue, 2 Feb 2016 11:52:52 +0000 Subject: [PATCH] fuel-plugin: Add config item for NIC used by OVS-DPDK Change-Id: I7e8daa47eee658efd88922840fdcf21b8b38acd5 Signed-off-by: Billy O'Mahony Reviewed-by: Mark D. Gray Reviewed-by: Michal Ptacek Reviewed-by: Michal Skalski Reviewed-by: Jonas Bjurel --- .../puppet/manifests/ovs-install-ovsnfv-compute.pp | 4 +++- fuel-plugin-ovsnfv/environment_config.yaml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp b/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp index 62c5766..d57002b 100644 --- a/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp +++ b/fuel-plugin-ovsnfv/deployment_scripts/puppet/manifests/ovs-install-ovsnfv-compute.pp @@ -1,9 +1,11 @@ $fuel_settings = parseyaml(file('/etc/astute.yaml')) $master_ip = $::fuel_settings['master_ip'] +$ovs_ifname = $::fuel_settings[fuel-plugin-ovsnfv][fuel-plugin-ovsnfv_text] + if $operatingsystem == 'Ubuntu' { class { '::ovsdpdk': - ovs_bridge_mappings => 'default:ens1f1', + ovs_bridge_mappings => "default:$ovs_ifname", ovs_socket_mem => '512,512', ovs_num_hugepages => '2048', compute => 'True', diff --git a/fuel-plugin-ovsnfv/environment_config.yaml b/fuel-plugin-ovsnfv/environment_config.yaml index 947e225..783fb12 100644 --- a/fuel-plugin-ovsnfv/environment_config.yaml +++ b/fuel-plugin-ovsnfv/environment_config.yaml @@ -1,7 +1,7 @@ attributes: fuel-plugin-ovsnfv_text: - value: 'Set default value' - label: 'Text field' - description: 'Description for text field' + value: 'ens1f1' + label: 'NIC for DPDK' + description: 'Specify compute node interface to which OVS-DPDK binds' weight: 25 type: "text" -- 2.16.6