mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
ovs-dev: Load all available vport modules on modinst
Automatically load all vport modules upon 'modinst' in case they are not properly installed and thus not autoloaded. Suggested-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Flavio Leitner <fbl@sysclose.org>
This commit is contained in:
@@ -280,6 +280,7 @@ def modinst():
|
||||
|
||||
_sh("modprobe", "openvswitch")
|
||||
_sh("dmesg | grep openvswitch | tail -1")
|
||||
_sh("find /lib/modules/%s/ -iname vport-*.ko -exec insmod '{}' \;" % uname())
|
||||
commands.append(modinst)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user