Mininet Network Generation¶
-
utils.network.
add_switches
(net, count, graph_method=<function path_graph>, **switch_kwargs)[source]¶ Generates a network graph and adds switches to it, returning the switches and links between them
Parameters: - net – A Mininet/Containernet network to add switches to
- count – The amount of switches to be added
- graph_method – A networkx graph generator see https://networkx.github.io/documentation/networkx-1.10/reference/generators.html
- switch_kwargs – Arguments to be passed to ‘Mininet.addSwitch’
Returns: A tuple containing a list of switches added, and a list of links created.