Now you can pass a topology name followed by params. For example, to create a switch with 3 hosts: sudo mn --topo single,3