summaryrefslogtreecommitdiffstats
path: root/testing/puppet-fdio/manifests/vpp/config.pp
blob: 96c349745b32bbcd8654fba74d2bfa41705fbae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# == Class fdio::vpp::config
#
# This class handles vpp config changes.
#
class fdio::vpp::config (
  $dpdk_pmd_type = $::fdio::params::dpdk_pmd_type,
  $dpdk_pci_devs = $::fdio::params::dpdk_pci_devs,
){
  file { '/etc/vpp/startup.conf':
    content => template('fdio/startup.conf.erb'),
  }

  # ensure that uio-pci-generic is loaded
  exec { 'modprobe uio-pci-generic':
    unless => 'lsmod | grep uio-pci-generic',
    path   => '/bin:/sbin',
  }
}