If there are connectors of different types that match, the type argument can select the one to use. Similarly it is possible to force the command to only consider connectors in one direction by specifying direction, that can be one of up and down.
The connect-to
command is useful when the exact location of a connection in the system does not matter. The following is an example of inserting a PCI-based Ethernet device into a simulated machine whose top-level component is called board:
$eth = (create-pci-i82543gc-comp mac_address = "10:20:30:40:50:60") $eth.connect-to board instantiate-components