Revision 5a646a0d examples/sshd.py

View differences:

examples/sshd.py
16 16
- running server processes (sshd in this case) on hosts
17 17
"""
18 18

  
19
import sys
20

  
19 21
from mininet.net import Mininet
20 22
from mininet.cli import CLI
21 23
from mininet.log import lg
......
68 70
if __name__ == '__main__':
69 71
    lg.setLogLevel( 'info')
70 72
    net = TreeNet( depth=1, fanout=4, switch=OVSKernelSwitch )
71
    sshd( net )
73
    # get sshd args from the command line; default: -D
74
    opts = ' '.join( sys.argv[ 1: ] ) if len( sys.argv ) > 1 else '-D'
75
    sshd( net, opts=opts )

Also available in: Unified diff