parameterised port configuration