[ovs-dev] [PATCH 4/4] ovs-dev: Load all available vport modules on modinst

Thomas Graf tgraf at noironetworks.com
Tue Apr 21 14:56:35 UTC 2015


Automatically load all vport modules upon 'modinst' in case
they are not properly installed and thus not autoloaded.

Suggested-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
---
 utilities/ovs-dev.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py
index 38b962a..8128b08 100755
--- a/utilities/ovs-dev.py
+++ b/utilities/ovs-dev.py
@@ -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)
 
 
-- 
2.3.5




More information about the dev mailing list