Statistics
| Branch: | Tag: | Revision:

mininet / mininet / topo.py @ master

History | View | Annotate | Download (12.2 KB)

# Date Author Comment
6cb68f26 04/14/2015 12:30 AM Bob Lantz

Simply use class names as option help

The justification for this is that 1) the options are
already documented in the API documentation and 2) the
class names are fairly self-explanatory, so adding short
descriptions doesn't add much.

In the future, however, we could add a short description...

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

5a530af1 12/01/2014 11:39 PM Bob Lantz

Remove trailing whitespace. ;-/

c273f490 11/23/2014 07:06 PM Bob Lantz

type( foo ) is bar -> isinstance( foo, bar )

de002b0d 11/13/2014 01:39 AM Bob Lantz

Remove ^S which was in this file (thanks emacs bindings)

3e1100b7 11/10/2014 11:18 PM Bob Lantz

Clarify MultiTopo docstrs and copy addLInk opts

Note: it's a bit confusing, but we need to copy the link
parameter dicts (since we update them with node info), but we
can share the node dicts. Perhaps we should copy the node
dicts as well...

e77123cf 11/03/2014 10:25 PM Bob Lantz

Remove unnecessary 0

8dea57d2 11/03/2014 10:20 PM Bob Lantz

Ignore link info when sorting links.

634761b8 11/03/2014 08:59 PM Bob Lantz

Fix edges() and add convertTo() to Topo() (with keys option)

01aac350 11/03/2014 08:43 PM Bob Lantz

Remove unused edgeinfo

ba8ea8f0 10/29/2014 03:43 AM Bob Lantz

Return (src, dst) in original order, and allow keys + data

eab4ea3f 10/29/2014 12:05 AM Bob Lantz

Minor fixes

38ce329e 10/28/2014 11:06 PM Bob Lantz

Allow Mininet() to accept multi-link topos w/correct params.

89fb0819 10/28/2014 10:50 PM Bob Lantz

First crack at fixing multiple links

  • Makes MultiGraph more like networkx.multigraph
  • Adds converTo method
  • Synchronizes node1 with xxx1 in link options
1b2c7a31 07/15/2014 12:58 PM Bob Lantz

Clean up standard topologies to use build

1324ae62 07/10/2014 04:37 AM Bob Lantz

Add build() method to simplify Topo() usage

824afb84 12/20/2013 01:43 PM Rémy Léone

fixup: useless_parenthesis

f796f01f 09/11/2013 07:00 PM Bob Lantz

add spaces to satisfy pylint ;-p

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

codecheck: removed unused variable in topo.py

bb0006b6 08/02/2013 08:35 PM Brian O'Connor

Merging MurphyMc LinearTopo pull request

9c4b7343 07/30/2013 06:52 PM Bob Lantz

Fix indentation in LinearTopo()

5b48a7d9 07/30/2013 06:51 PM Bob Lantz

Reimplemented and corrected Graph as MultiGraph
fixes #172

92112315 07/19/2013 10:56 PM Brian O'Connor

Simplified and refactored examples/dynamicnet.py
Extended LinearTopo to support mulitple hosts per switch

e5d7b380 06/21/2013 01:51 AM Brandon Heller

topo: make new minimal Graph object a Graph, not a DiGraph

Fixes another Graph regression relative to NetworkX.

RipL broke because the NetworkX Graph object that was used previously
for topologies is an undirected graph:

import networkx as nx
g=nx.Graph()...

4e1630e1 06/20/2013 11:27 PM Brandon Heller

topo: add getitem for Graph

Commit 65c35b65 'Remove networkx dependency' broke this line from RipL:

nodes = [n for n in self.g[name] if self.layer(n)  layer]

To work around this, RipL code would have to be changed to something
like this:

nodes = [n for n in self.g.data[name] if self.layer(n)  layer]...
a22e2618 06/06/2013 11:18 PM Murphy McCauley

topo: Add host count param to LinearTopo

Previously, LinearTopo took one parameter (k), which controlled the number
of switches; each of these got one host. This adds a second parameter (j),
which controls the number of hosts per switch, defaulting to 1 (as before)....

2485d57f 05/22/2013 10:40 PM Bob Lantz

Edits to pass code check and make style consistent.

65c35b65 05/22/2013 10:24 PM ryanc

Remove networkx dependency

Conflicts:

util/install.sh

closes #100

2e089b5e 11/14/2012 01:17 AM Brandon Heller

pep8: Fix E127 continuation line over-indented

There are a bunch of these remaining, but I don't think the right course is
to 'fix' all of them to make pep8 happy, but instead to either change
the test in pep8 to consider that a continuation line may itself...

ce15c4f6 08/17/2012 01:48 AM Bob Lantz

rename Topo() methods for consistency: add_node() -> addNode()

8f310286 05/22/2012 06:09 AM Bob Lantz

Add setLinkInfo() which seems to be missing.

78606a35 04/01/2012 04:29 AM Bob Lantz

Removed unused param in add_link.

e1246c37 03/25/2012 10:39 PM Bob Lantz

Simplify port specification.

For the moment, I've removed the ability to specify
a dict of options without using **. This is a slightly
unfortunate trade-off since it simplifies implementation
at the expense of making the API slightly less convenient
(if somewhat more consistent.)

8bebd377 03/20/2012 10:45 PM Bob Lantz

Fix is_switch() to always succeed + whitespace edits.

5a8bb489 03/20/2012 07:17 AM Bob Lantz

Attempt at revised/simplified topo class:

- keys are strings
- metadata is simply a dict
- buildFromTopo greatly simplified

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

Fix codecheck and MininetWithControlNet.

82f483f5 03/10/2012 01:44 AM Bob Lantz

Add support for specifying host IP range with --ipbase.

bf5becc7 03/08/2012 09:38 PM Bob Lantz

Get rid of SWITCH_PORT_BASE since it's 1 for OF >= 1.0.

cbe20c75 03/08/2012 08:05 AM Bob Lantz

Remove unused imports.

b1f90976 03/07/2012 08:03 AM Bob Lantz

Remove default classes since Mininet() really handles them.

94c02695 03/07/2012 07:50 AM Bob Lantz

Clarify precedence of default classes.

a6bcad8f 03/02/2012 11:45 PM Bob Lantz

Intf and Link classes. Latter support bandwidth limits using tc.

24baea73 10/18/2010 12:36 AM Bob Lantz

Changed networkx import line; we may have to deal with version issues here.

68c89df8 08/17/2010 02:35 AM Bob Lantz

Pass make codecheck.

dd159b4a 08/16/2010 09:49 PM Bob Lantz

mininet.node.SWITCH_PORT_BASE specifies first switch port number.

This should be mostly cosmetic, but it causes switches to number
their ports consistently with OpenFlow 1.0, which starts at 1.
For older versions of OpenFlow, SWITCH_PORT_BASE may be set to zero.

0774c8bb 03/24/2010 09:42 PM Bob Lantz

Added two spaces before in-line # comments.

80be5642 03/08/2010 11:32 PM Bob Lantz

Removed underscores for public Node methods. Minor cleanup & comments.

befa1310 01/30/2010 10:46 AM Brandon Heller

Revamp custom topology input

Defining custom topologies, switch types, controllers, and hosts is now
much easier. Plus, all Ripcord-specific stuff has been moved out.

723d068c 01/10/2010 01:59 AM Brandon Heller

Add static code checking for style and errors

This required a change to logging, which now uses a singleton pattern.

For all future checkins, 'make codecheck' should pass.

6d2cd77b 01/06/2010 04:53 PM Brandon Heller

Add reversed version of the SingleSwitch topology

Possibly useful for adding custom port mappings.

433a7cc8 01/03/2010 11:53 AM Brandon Heller

Make Ripcord-specific topologies optional

If ripcord.dctopo imports properly, then include its topologies in the
list of available ones. Also replace topo.py with new generic
topologies and update paths.

c98514ae 01/03/2010 10:44 AM Brandon Heller

Support more topologies

54037995 01/01/2010 11:16 AM Brandon Heller

Add MAC auto set for switches

Also use indexing for DPIDs to avoid zeroed MAC

8b5062a3 12/26/2009 10:25 PM Brandon Heller

Move TreeNet to new Mininet API

Also remove all non-object-oriented legacy Mininet code and update
tests.

User-space compatibility is untested, but most of the code for it is
still in.