From a9b8980b5b933d1b09134ff1ab2d7601d76c40c2 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Wed, 22 Mar 2017 10:20:43 -0400 Subject: Add parameter for dpdk-plugin support DPDK is now an optional plugin shipped in vpp-plugins package, adding parameter vpp_dpdk_support which defaults to true to support configuration of DPDK related options. JIRA: PUP-2 Change-Id: Ie033e2b6cd871c8f8b644499a0283949a0039bf6 Signed-off-by: Feng Pan --- lib/puppet/provider/vpp_config/vpp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/provider/vpp_config') diff --git a/lib/puppet/provider/vpp_config/vpp.rb b/lib/puppet/provider/vpp_config/vpp.rb index 2574d4c..eb49fe3 100644 --- a/lib/puppet/provider/vpp_config/vpp.rb +++ b/lib/puppet/provider/vpp_config/vpp.rb @@ -36,7 +36,7 @@ Puppet::Type.type(:vpp_config).provide(:vpp) do scanner = StringScanner.new vpp_config #first skip to section beginning - string = scanner.scan_until(/#{@section}\s*{\s*/) + string = scanner.scan_until(/^\s*#{@section}\s*{\s*/) #if we can't find the section, add it to the end return vpp_config+"\n#{@section} {", "", "}\n" unless string -- cgit 1.2.3-korg