Merge "Restart OVS after Mellanox drivers are loaded when recompiling mlnx-ofed-kernel module on Ubuntu" into stable/5.1

This commit is contained in:
Jenkins 2014-12-02 10:58:37 +00:00 committed by Gerrit Code Review
commit a304347733
1 changed files with 9 additions and 5 deletions

View File

@ -25,10 +25,14 @@ class mellanox_openstack::ofed_recompile {
logoutput => true,
notify => Service['openibd'],
}
service { 'openibd' :
ensure => "running",
notify => Exec['restart_ovs_for_openibd'],
}
exec { 'restart_ovs_for_openibd' :
command => "service openvswitch-switch restart",
path => ['/usr/bin','/usr/sbin','/bin','/sbin','/usr/local/bin'],
refreshonly => true,
}
}
service { 'openibd' :
ensure => "running",
}
}