Statistics
| Branch: | Tag: | Revision:

mininet / mininet / cli.py @ master

History | View | Annotate | Download (15.4 KB)

# Date Author Comment
f49e2539 03/18/2015 10:32 PM Bob Lantz

Minor formatting, pass code check

c5779dee 03/18/2015 10:17 PM Bob Lantz

Pass code check

613fac4b 02/21/2015 12:46 AM Bob Lantz

Move cmdloop() wrapper into a new run() method

I also added another try/catch block so that interrupting
the 'Interrupt' message should no longer occur.

e0cd11ab 02/20/2015 06:47 PM Rich Lane

cli: don't read/write readline history more than once

Previously, when creating multiple CLI objects, each one would append the
~/.mininet_history file to readline's internal list. When writing the file back
it would be duplicated for each CLI object created. So, over a few mininet runs...

7a3159c9 12/08/2014 11:10 PM Bob Lantz

Spacing tweaks for pep8 checker

061598f0 12/04/2014 04:21 PM Bob Lantz

Change from numeric to symbolic pylint error codes

b1ec912d 12/03/2014 07:00 AM Bob Lantz

Fixing pylint errors

4e644d74 11/24/2014 07:27 PM lantz

Merge pull request #450 from mininet/sw-cmd

adding deleteIntfs option to switches and corresponding CLI command

50774e40 11/23/2014 07:11 PM Bob Lantz

Remove unused imports

23dfbe4a 11/22/2014 02:35 AM Brian O'Connor

explicit param call in cli command

b57e5d93 11/22/2014 02:33 AM Brian O'Connor

adding deleteIntfs option to switches and corresponding CLI command

cac98f5f 10/11/2014 03:32 AM cody burkard

add cli usage information

55ef99b6 09/21/2014 07:13 AM Brian O'Connor

Merge pull request #379 from cdburkard/devel/show_ports

adding 'ports' command to cli

8396960e 09/21/2014 06:27 AM Brian O'Connor

Merge pull request #380 from cdburkard/devel/cli_comments

parse comments out of CLI

c5e8f09b 09/15/2014 10:52 PM cody burkard

adding comments to CLI

08643fe6 09/15/2014 10:33 PM cody burkard

adding 'ports' command to cli

c265deed 09/05/2014 06:07 AM Bob Lantz

Cluster edition prototype: remote nodes and links.

We add a new experimental feature to allow Mininet to run across
a cluster of machines. This is currently implemented via a set
mix-in classes that provide remote nodes that are implemented
via a connection to a remote shell, and remote links which are...

549f1ebc 06/27/2014 11:41 PM Bob Lantz

Attach a pty to each node's bash process

This should enable node commands that are expecting a tty to
behave better.

4d1a9cdc 04/25/2014 04:37 AM Jon Hall

Add a timeout parameter to the pingAll command

a905be22 03/15/2014 05:46 PM Rich Lane

persistent command history

Saves readline history to ~/.mininet_history.

24fe68d9 12/21/2013 01:36 PM Baohua Yang

Correct the comments of do_pingallfull() and do_iperfudp()

3780d9cd 12/21/2013 01:36 PM Baohua Yang

Close the file when done with it.

c7e86f93 12/06/2013 01:30 AM Brian O'Connor

fixing CLI host rewriting when host's default interface does not have an IP

e9a835ac 09/11/2013 07:00 PM Brian O'Connor

print usage message for unknown command

98cb3359 08/10/2013 12:10 AM Brian O'Connor

fixed comment in cli.py

9281719d 08/10/2013 12:07 AM Brian O'Connor

Made net compliant with dict semantics and added function comments
Fixed locals bug (now they are persisent across calls)

8e04a9f8 08/09/2013 07:20 PM Brian O'Connor

Replaced nodelist and nodemap in CLI with mn
Updated Mininet to be more compliant with dict
Fixes #182

e3d07bc1 05/29/2013 05:10 AM Bob Lantz

Add 'x' command to open an X11 tunnel (and run a client)
fixes #142

1ea5c91f 05/22/2013 10:06 PM Bob Lantz

Update host's IP address during name-IP substitution
fixes #139

229f112f 04/29/2013 09:04 PM Bob Lantz

Change OVSSwitch.dpctl() to call ovs-ofctl

This should fix the problem of dump-flows not showing the OpenFlow
flow table flows and only showing cached kernel flow table flows.

fixes #136

23c70f60 03/01/2013 03:14 AM Bob Lantz

Add px command which uses exec() vs. py's eval()
This is necessary since exec() isn't really a function, and
eval can't evaluate statements.
fixes #104

1f1d590c 11/14/2012 03:57 PM Brandon Heller

test: Improve unit tests to verify basic functionality

Also a more complete ping test that parses all output to the CLI.

These tests expand the hifi-specific ones to not just cover whether
a topology can be created with options, but whether those options...

edf60032 11/14/2012 12:59 AM Brandon Heller

pep8: fix E128 continuation line under-indented errors

I wasn't sure this was worth fixing at first, but it does look more readable
now.

f509ae28 05/25/2012 11:34 PM Brandon Heller

cli: add time command

4c3ff8f1 05/11/2012 05:23 AM Bob Lantz

Remove accidentally added debugging line.

cece39e4 05/10/2012 11:32 PM Bob Lantz

Fix poller to only check if stdin and node are readable.
Thanks to James Zeng for pointing this out!

2d924f8a 03/25/2012 10:38 PM Bob Lantz

Add Mininet object to locals as 'net'

612b21cb 03/24/2012 01:38 AM Bob Lantz

Pass code check.

beb05a71 03/24/2012 01:17 AM Bob Lantz

Move dumpNetConnections to util() because it's useful!

8856d284 03/12/2012 02:44 AM Bob Lantz

Fix CLI commands.

14ff3ad3 03/11/2012 04:44 AM Bob Lantz

Fix codecheck and MininetWithControlNet.

5c24e186 08/20/2010 03:48 PM Bob Lantz

Disable (broken) scripting for interactive commands.

9da63d4e 08/18/2010 09:08 AM Brandon Heller

Add dpctl command, which runs on all switches

e3a1fbb0 08/17/2010 07:02 AM Bob Lantz

Added support for pre- and post-test CLI scripts.

b7097daa 08/17/2010 07:02 AM Bob Lantz

Pass make codecheck.

dde9c91d 08/17/2010 07:02 AM Bob Lantz

Added error message if we can't read script file.

9d0dbe48 08/17/2010 07:02 AM Bob Lantz

Added "source" command and restored echo after noecho command.
Interactive commands should "work", sort of.

57aae3e1 08/10/2010 11:28 AM Brandon Heller

Add more param choices for iperf udp on CLI

60a39a72 08/10/2010 09:16 AM Brandon Heller

Add ability to specify hosts for iperf test

c26875cb 05/07/2010 08:15 AM Bob Lantz

Fixed minor breakage due to code cleanup.

e3f6ecca 05/07/2010 12:48 AM Bob Lantz

Pass codecheck.

82b72072 05/06/2010 11:24 PM Bob Lantz

Pass pylint.

259d7133 05/05/2010 02:11 AM Bob Lantz

Pass pyflakes.

83332c1a 04/23/2010 12:03 AM Bob Lantz

Handle interfaces (e.g. real interfaces) without remote Node.

2a554ae3 04/13/2010 01:56 AM Bob Lantz

Changed 'args' to 'line' and fixed iperfudp.

caf024bc 04/13/2010 01:52 AM Bob Lantz

Made help string a class var.

e555f83c 04/13/2010 01:45 AM Bob Lantz

Replaced stdout.write() with output()

c1667986 04/13/2010 01:37 AM Bob Lantz

Updated comments to reflect interactive command support.

It may be fragile, but it does sort of work.

f800e512 04/13/2010 01:34 AM Bob Lantz

Tweaks for better interactive command handling.

68f97b74 04/11/2010 06:54 AM Bob Lantz

Added explicit xterm and gterm commands.

This is not as generic as having a single 'term' command, but
it's a lot more convenient to use.

15b482e3 04/05/2010 09:27 AM Brandon Heller

Support gnome terminals too

Caution: code is incomplete - can't set a default type from the CLI
and in some places the phrase xterm should be replaced by terminal.

ce9cd5be 04/05/2010 08:06 AM Brandon Heller

Add command to spawn an xterm

5eac2a84 03/27/2010 01:47 AM Bob Lantz

Changed help message to be a bit clearer.

e91b2815 03/25/2010 12:21 AM Bob Lantz

Moved waitForNode. Maybe candidate for util.py or static method...

c2cc1aac 03/25/2010 12:17 AM Bob Lantz

Attempt to handle interrupts in the middle of CLI commands.

b2ef87ae 03/24/2010 10:02 PM Bob Lantz

Changes to pass code check.

We should check NOXController and RemoteController to make sure that
they are not broken, but I cannot do this at the moment.

cf6f6704 03/24/2010 09:41 PM Bob Lantz

Added two spaces before in-line # comments.

c70aab0a 03/23/2010 10:25 PM Bob Lantz

Changed mininet.link() to mininet.configLinkStatus(src,dst,status)

Also rearranged parameters in link command to

mininet> link s1 h2 up

To resemble ifconfig a bit more.

f5191b85 03/23/2010 08:15 AM Brandon Heller

Revert "Add ability to pause and resume any node"

This reverts commit 07aad110819778fdf65a43a6d11e9ca46c9881db.

When the semantics are clear, functionality like this will get added back to
Mininet.

Conflicts:

mininet/node.py
e4c82e52 03/16/2010 09:59 PM Bob Lantz

Change Node.monitor() to just return output.

It seems easier to rely on node.waiting for the moment.

07aad110 03/14/2010 05:35 AM Brandon Heller

Add ability to pause and resume any node

28cd95c3 03/14/2010 05:32 AM Brandon Heller

Fix link command parsing bug

bcacfc05 03/14/2010 02:23 AM Bob Lantz

Support for control-C. Finally.

I've changed the way things work a bit:

1. netns is replaced by mnexec, a general-purpose mininet helper.

2. For interactive commands, we now use mnexec -p, which prints out
the pid, so we can kill it when someone hits control-C!...

8d3c2859 03/13/2010 02:30 PM Brandon Heller

Add port status change command

74993b65 03/13/2010 12:40 AM Bob Lantz

Changes to note neither ^C nor interactive commands work atm.

47dbca29 03/10/2010 05:47 AM Bob Lantz

Made iperf verbose and fixed node command output.

b924c5b5 03/06/2010 01:00 AM Bob Lantz

Fixed printing in CLI.net()

cdeaca86 03/05/2010 12:11 PM Brandon Heller

Rename cliinfo debug level to output

7ae73e67 03/05/2010 06:36 AM Brandon Heller

Fix pylint warnings

4e69ae83 03/05/2010 05:34 AM Brandon Heller

Slightly reduce cliinfo verbosity

1a40cd04 03/05/2010 02:58 AM Brandon Heller

Add new loglevel to display CLI output only

Also print warning if user chooses a loglevel that will hide CLI output.

1fdcd676 03/03/2010 09:46 PM Bob Lantz

Added py command to evaluate Python expressions, e.g. h1.cmd('ls')

e0cfcdd5 03/01/2010 11:21 PM Bob Lantz

Tweaks to pass code check.

2235f216 02/28/2010 07:40 AM Bob Lantz

Minor cleanup of mn/net and fixes for CLI.

All commands should work now.

c3a44400 02/28/2010 07:19 AM Bob Lantz

Changed custom feature so that params aren't added to globals.

There is probably a better way of doing this, but currently
parseCustomFile can modify globals (e.g. TOPOS) as well as
instance variables (self.validate) and classes (e.g. MyTopo),
which are also in the global name space....

78073e1b 02/27/2010 09:54 PM Bob Lantz

Fixed to be compatible with modified Mininet() class.

31b43002 02/16/2010 10:42 PM Bob Lantz

Added a bit to comments, and removed trailing spaces.

64c451e0 02/10/2010 06:40 AM Bob Lantz

Minor bug fixes and tweaks.

Shell now works (although we should use quietRun instead to avoid
file descriptor problem!)

exit/quit/EOF now all exit.

Renamed pingall and pingpair to make them easier to type - I think
commands should not require use of the shift key in general, although...

bd1e997f 02/08/2010 11:43 PM Bob Lantz

Remove backslash.

e85f8bdf 02/06/2010 01:22 AM Bob Lantz

Removed hash-bang in module files which aren't executed directly,
with the exception of topo.py, which I haven't touched.

496b5f9e 02/06/2010 01:01 AM Bob Lantz

Moved CLI into its own file. Also, MininetCLI is now just 'CLI'.

114dcd56 01/29/2010 10:42 PM Brandon Heller

Improve CLI line editing capabilities

Convert CLI to use Python Cmd object, which provides line editing.

83097ff9 01/29/2010 09:29 PM Brandon Heller

Fix errors from style changes