Ensure netns is in the path.

This commit is contained in:
Brandon Heller
2009-12-12 02:54:52 -08:00
parent ac75d7cff4
commit ea7c8795f5
+4
View File
@@ -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__':