Added default for max_ports_per_switch

Fixes #12