Don't try to modprobe tun if it's built-in (e.g. Ubuntu.)
This commit is contained in:
+2
-1
@@ -471,7 +471,8 @@ class UserSwitch( Switch ):
|
||||
@staticmethod
|
||||
def setup():
|
||||
"Ensure any dependencies are loaded; if not, try to load them."
|
||||
moduleDeps( add=TUN )
|
||||
if not os.path.exists( '/dev/net/tun' ):
|
||||
moduleDeps( add=TUN )
|
||||
|
||||
def start( self, controllers ):
|
||||
"""Start OpenFlow reference user datapath.
|
||||
|
||||
Reference in New Issue
Block a user