Skip to content
Snippets Groups Projects
Commit ea7c8795 authored by Brandon Heller's avatar Brandon Heller
Browse files

Ensure netns is in the path.

parent ac75d7cf
No related branches found
No related tags found
No related merge requests found
......@@ -796,6 +796,10 @@ def init():
# Note: this script must be run as root
# Perhaps we should do so automatically!
print "*** Mininet must run as root."; exit( 1 )
# If which produces no output, then netns is not in the path.
# May want to loosen this to handle netns in the current dir.
if not quietRun(['which', 'netns']):
raise Exception("Could not find netns; see INSTALL")
fixLimits()
if __name__ == '__main__':
......
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