lantz/mininet — comment on commit d62a2fe3f3a7a29b846fbb6720c6061fed18e779
File: mininet/net.py line 557
By brandonheller:

There's a lot of duplicated code here. A validate(host, type) function would drop the ~20 lines of code per function down to 2.