creating a port submodel with the switch model