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

Suggested-by: Flavio Leitner <[email protected]>
Signed-off-by: Thomas Graf <[email protected]>
---
 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

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to