tests.connect_all
Connect all VMs in the experiment to a single Switch
.
The primary use is to test connectivity, NIC creation, and IP address assignment.
This MC can support up to 255 networks where all VMs would be connected to each network.
If more than 10 networks are used, the VMs RAM and number of cores are also increased.
This is due to issues within VMs handling large numbers of NICs.
This MC also supports both IPv4 and IPv6 networks.
- Attribute Depends:
topology
- Model Component Dependencies:
Plugin
- class tests.connect_all_plugin.Plugin(graph, log)[source]
Bases:
AbstractPlugin
Connect all VMs in the experiment to a single
Switch
. This is for testing connectivity, NIC creation, and IP address assignment.- __annotations__ = {}
- run(num_nets='1', ipv6='False')[source]
Connect all VMs in the experiment to a single
Switch
. The number of connections depends on the number of networks passed into the plugin. An error will be thrown if there are more than 255 networks.- Parameters:
- Raises:
RuntimeError – If
num_nets
is less than or equal to 0 or greater than 255.