Constraints for devices (min and max number of inputs and outputs)