diff --git a/mininet/cli.py b/mininet/cli.py index 2ff982515e3a4bad863dc56bb1e524ddf1157f9b..08638c80936019f3d47cf7e9904a5785848cae9e 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -160,7 +160,7 @@ def do_pingpair( self, _line ): self.mn.pingPair() def do_pingallfull( self, _line ): - "Ping between first two hosts, returns all ping results." + "Ping between all hosts, returns all ping results." self.mn.pingAllFull() def do_pingpairfull( self, _line ): @@ -187,7 +187,7 @@ def do_iperf( self, line ): error( 'invalid number of args: iperf src dst\n' ) def do_iperfudp( self, line ): - "Simple iperf TCP test between two (optionally specified) hosts." + "Simple iperf UDP test between two (optionally specified) hosts." args = line.split() if not args: self.mn.iperf( l4Type='UDP' ) @@ -297,6 +297,7 @@ def do_source( self, line ): break except IOError: error( 'error reading file %s\n' % args[ 0 ] ) + self.inputFile.close() self.inputFile = None def do_dpctl( self, line ):