a bit complicated Mininet topology generation