In this repository there are some examples developed using the Kathará API that generate network topologies with random elements.
In the first example, numhosts_and_ips, a laboratory is generated with a random number of nodes and IPs.
Second example a laboratory is generated with a random number of nodes, IPs and networks. Some hosts have more than one interfaces.
Random OSs
If you want an interface bridged to your host, simply:
n=lab.new_machine(nom, **{"image":"kathara/base", "bridged":"True"})
Transferring files and content into Docker instances