examples/baresshd: ensure root permissions

Prevent idiots like me from getting confused by non-obvious 'broken pipe'
errors when they forget to put 'sudo' in front  :-)
This commit is contained in:
Brandon Heller
2012-11-13 21:33:44 -08:00
parent bcfb3009c0
commit 12fea0f6d5
+3
View File
@@ -3,6 +3,9 @@
"This example doesn't use OpenFlow, but attempts to run sshd in a namespace." "This example doesn't use OpenFlow, but attempts to run sshd in a namespace."
from mininet.node import Host from mininet.node import Host
from mininet.util import ensureRoot
ensureRoot()
print "*** Creating nodes" print "*** Creating nodes"
h1 = Host( 'h1' ) h1 = Host( 'h1' )