summaryrefslogtreecommitdiffstats
path: root/manifests/config.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp32
1 files changed, 26 insertions, 6 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 2a99ea2..7a2a2b3 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -17,17 +17,37 @@ class fdio::config {
'dpdk/dev/default': value => $fdio::vpp_dpdk_dev_default_options;
'dpdk/uio-driver': value => $fdio::vpp_dpdk_uio_driver;
'dpdk/socket-mem': value => $fdio::vpp_dpdk_socket_mem;
- 'vhost-user/coalesce-frames': value => $fdio::vpp_vhostuser_coalesce_frames;
- 'vhost-user/coalesce-time': value => $fdio::vpp_vhostuser_coalesce_time;
}
- if $fdio::vpp_vhostuser_dont_dump_memory {
+ fdio::config::vpp_devices { $fdio::vpp_dpdk_devs: }
+ }
+
+ vpp_config {
+ 'vhost-user/coalesce-frames': value => $fdio::vpp_vhostuser_coalesce_frames;
+ 'vhost-user/coalesce-time': value => $fdio::vpp_vhostuser_coalesce_time;
+ 'tuntap/mtu': value => $fdio::vpp_tuntap_mtu;
+ 'tapcli/mtu': value => $fdio::vpp_tapcli_mtu;
+ }
+
+ if $fdio::vpp_vhostuser_dont_dump_memory {
+ vpp_config {
+ 'vhost-user/dont-dump-memory': ensure => present;
+ }
+ }
+
+ if $fdio::vpp_tuntap_enable != undef {
+ if $fdio::vpp_tuntap_enable {
vpp_config {
- 'vhost-user/dont-dump-memory': ensure => present;
+ 'tuntap/enable': ensure => present;
+ 'tuntap/disable': ensure => absent;
+ }
+ }
+ else {
+ vpp_config {
+ 'tuntap/enable': ensure => absent;
+ 'tuntap/disable': ensure => present;
}
}
-
- fdio::config::vpp_devices { $fdio::vpp_dpdk_devs: }
}
vpp_config {