Rich Lane
a905be2260
persistent command history
...
Saves readline history to ~/.mininet_history.
2014-03-15 10:46:07 -07:00
Baohua Yang
24fe68d925
Correct the comments of do_pingallfull() and do_iperfudp()
2013-12-21 21:36:24 +08:00
Baohua Yang
3780d9cda8
Close the file when done with it.
2013-12-21 21:36:22 +08:00
Brian O'Connor
c7e86f9374
fixing CLI host rewriting when host's default interface does not have an IP
2013-12-05 17:30:09 -08:00
Brian O'Connor
e9a835ac55
print usage message for unknown command
2013-09-11 12:00:15 -07:00
Brian O'Connor
98cb33599f
fixed comment in cli.py
2013-08-09 17:10:50 -07:00
Brian O'Connor
9281719d74
Made net compliant with dict semantics and added function comments
...
Fixed locals bug (now they are persisent across calls)
2013-08-09 17:07:39 -07:00
Brian O'Connor
8e04a9f844
Replaced nodelist and nodemap in CLI with mn
...
Updated Mininet to be more compliant with dict
Fixes #182
2013-08-09 12:20:13 -07:00
Bob Lantz
e3d07bc1a0
Add 'x' command to open an X11 tunnel (and run a client)
...
fixes #142
2013-05-28 22:10:27 -07:00
Bob Lantz
1ea5c91fcc
Update host's IP address during name-IP substitution
...
fixes #139
2013-05-22 15:06:10 -07:00
Bob Lantz
229f112ff3
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
2013-04-29 14:04:46 -07:00
Bob Lantz
23c70f609d
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
2013-02-28 19:14:37 -08:00
Brandon Heller
1f1d590c7a
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
are properly implemented within some tolerance, like CPU limits,
link bandwidth, delays, and even drops.
2012-11-14 07:57:17 -08:00
Brandon Heller
edf6003217
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.
2012-11-13 16:59:10 -08:00
Brandon Heller
f509ae282d
cli: add time command
2012-05-25 16:34:05 -07:00
Bob Lantz
4c3ff8f184
Remove accidentally added debugging line.
2012-05-10 22:23:31 -07:00
Bob Lantz
cece39e439
Fix poller to only check if stdin and node are readable.
...
Thanks to James Zeng for pointing this out!
2012-05-10 16:32:55 -07:00
Bob Lantz
2d924f8a65
Add Mininet object to locals as 'net'
2012-03-25 15:38:32 -07:00
Bob Lantz
612b21cbe7
Pass code check.
2012-03-23 18:38:49 -07:00
Bob Lantz
beb05a71c8
Move dumpNetConnections to util() because it's useful!
2012-03-23 18:17:49 -07:00
Bob Lantz
8856d284c0
Fix CLI commands.
2012-03-11 19:44:04 -07:00
Bob Lantz
14ff3ad3d0
Fix codecheck and MininetWithControlNet.
2012-03-10 20:44:34 -08:00
Bob Lantz
5c24e18639
Disable (broken) scripting for interactive commands.
2010-08-20 08:48:10 -07:00
Brandon Heller
9da63d4e85
Add dpctl command, which runs on all switches
2010-08-18 02:08:35 -07:00
Bob Lantz
e3a1fbb047
Added support for pre- and post-test CLI scripts.
2010-08-17 00:02:31 -07:00
Bob Lantz
b7097daad4
Pass make codecheck.
2010-08-17 00:02:30 -07:00
Bob Lantz
dde9c91dcf
Added error message if we can't read script file.
2010-08-17 00:02:30 -07:00
Bob Lantz
9d0dbe488a
Added "source" command and restored echo after noecho command.
...
Interactive commands should "work", sort of.
2010-08-17 00:02:29 -07:00
Brandon Heller
57aae3e103
Add more param choices for iperf udp on CLI
2010-08-10 04:28:18 -07:00
Brandon Heller
60a39a7241
Add ability to specify hosts for iperf test
2010-08-10 02:16:36 -07:00
Bob Lantz
c26875cb55
Fixed minor breakage due to code cleanup.
2010-05-07 01:15:41 -07:00
Bob Lantz
e3f6ecca97
Pass codecheck.
2010-05-06 17:48:15 -07:00
Bob Lantz
82b7207295
Pass pylint.
2010-05-06 16:24:15 -07:00
Bob Lantz
259d713315
Pass pyflakes.
2010-05-04 19:11:12 -07:00
Bob Lantz
83332c1a42
Handle interfaces (e.g. real interfaces) without remote Node.
2010-04-22 17:03:26 -07:00
Bob Lantz
2a554ae33c
Changed 'args' to 'line' and fixed iperfudp.
2010-04-12 18:56:50 -07:00
Bob Lantz
caf024bc98
Made help string a class var.
2010-04-12 18:52:00 -07:00
Bob Lantz
e555f83c97
Replaced stdout.write() with output()
2010-04-12 18:45:43 -07:00
Bob Lantz
c16679863b
Updated comments to reflect interactive command support.
...
It may be fragile, but it does sort of work.
2010-04-12 18:37:33 -07:00
Bob Lantz
f800e5124d
Tweaks for better interactive command handling.
2010-04-12 18:34:52 -07:00
Bob Lantz
68f97b74ad
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.
2010-04-10 23:54:05 -07:00
Brandon Heller
15b482e375
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.
2010-04-05 02:27:00 -07:00
Brandon Heller
ce9cd5bee5
Add command to spawn an xterm
2010-04-05 01:06:30 -07:00
Bob Lantz
5eac2a8403
Changed help message to be a bit clearer.
2010-03-26 18:47:41 -07:00
Brandon Heller
f5191b855f
Revert "Add ability to pause and resume any node"
...
This reverts commit 07aad11081 .
When the semantics are clear, functionality like this will get added back to
Mininet.
Conflicts:
mininet/node.py
2010-03-23 01:15:51 -07:00
Bob Lantz
e91b2815fa
Moved waitForNode. Maybe candidate for util.py or static method...
2010-03-24 17:21:57 -07:00
Bob Lantz
c2cc1aacf6
Attempt to handle interrupts in the middle of CLI commands.
2010-03-24 17:17:24 -07:00
Bob Lantz
b2ef87ae51
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.
2010-03-24 15:02:28 -07:00
Bob Lantz
cf6f67045b
Added two spaces before in-line # comments.
2010-03-24 14:41:40 -07:00
Bob Lantz
c70aab0a38
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.
2010-03-23 15:25:12 -07:00