Skip to content
Snippets Groups Projects
Commit e900a16c authored by Bob Lantz's avatar Bob Lantz
Browse files

Don't try to modprobe tun if it's built-in (e.g. Ubuntu.)

parent 05c2d669
No related branches found
No related tags found
No related merge requests found
...@@ -471,7 +471,8 @@ def __init__( self, name, **kwargs ): ...@@ -471,7 +471,8 @@ def __init__( self, name, **kwargs ):
@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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment