Add dependency to openvswitch service for adding DPDK_OPTIONS

Openvswitch service is not restarted after configuring the
DPDK_OPTIONS parameter in /etc/sysconfig/openvswitch. Only
after the restart, the openvswitch will start in the DPDK
mode. Add a dependency to file modification to restart
the service.

Change-Id: I7df340ccffd723581ee043fd8f23a403fbfe46bb
Fixes-Bug: #1649267
This commit is contained in:
Saravanan KR 2016-12-12 18:27:47 +05:30
parent b797ae79a0
commit 8383404ab8

View File

@ -60,6 +60,7 @@ class vswitch::dpdk (
case $::osfamily { case $::osfamily {
'Redhat': { 'Redhat': {
file_line { '/etc/sysconfig/openvswitch': file_line { '/etc/sysconfig/openvswitch':
notify => Service['openvswitch'],
path => '/etc/sysconfig/openvswitch', path => '/etc/sysconfig/openvswitch',
match => '^DPDK_OPTIONS.*', match => '^DPDK_OPTIONS.*',
line => $options, line => $options,