Restart OVS after Mellanox drivers are loaded when recompiling
mlnx-ofed-kernel module on Ubuntu After recompilation the drivers are reloaded, there is a dependency between OVS and openibd - OVS must be reloaded whenever openibd is reloaded. Change-Id: Ia96f4e8c4c9ae88b501202c343dc589848ef7cfd Closes-bug: 1397891 Signed-off-by: gilmeir <gilmeir@mellanox.com>
This commit is contained in:
parent
93f1d72d7a
commit
42ad43bd70
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user