1
votes

I am using python to build up a virtual network. For instance, I got a graph(topology), and I need to stick configurations to each node(device) and edge(connections), which is troublesome. Because, you need to handcraft everything, making sure that each connection is valid (for example, two-end nodes should have ip addresses in the same subnet. Another one, one node has DHCP running should not connect to WAN directly.)

I want to know if there is any library serving the similar purpose as I described. For example, generating random but legit network configurations. Or do you guys have any way to solve it?

Thanks!