diff options
author | Feng Pan <fpan@redhat.com> | 2017-03-22 10:20:43 -0400 |
---|---|---|
committer | Feng Pan <fpan@redhat.com> | 2017-04-22 00:24:57 -0400 |
commit | a9b8980b5b933d1b09134ff1ab2d7601d76c40c2 (patch) | |
tree | 6a8954f02e651210bbac8295781d440df0d8cc98 /lib | |
parent | bb2d937d418b9353fd6f294978c23f5908d2e366 (diff) |
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 <fpan@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/provider/vpp_config/vpp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |