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
|
@staticmethod
|
||||||
def setup():
|
def setup():
|
||||||
"Ensure any dependencies are loaded; if not, try to load them."
|
"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 ):
|
def start( self, controllers ):
|
||||||
"""Start OpenFlow reference user datapath.
|
"""Start OpenFlow reference user datapath.
|
||||||
|
|||||||
Reference in New Issue
Block a user