def _build_port_strings(self, ports):
        port_range_list = group_sequences(ports, are_in_sequence=self._are_in_sequence)
        port_list = []
        for port_range in port_range_list:
            first_details = self._get_interface_details(port_range[0].name)
            if len(port_range) == 1:
                port_list.append("{}{}".format(first_details.port_prefix, first_details.port))
            else:
                port_list.append("{0}{1}-{0}{2}".format(first_details.port_prefix, first_details.port, self._get_interface_details(port_range[-1].name).port))
        return _assemble_elements_on_lines(port_list, max_line_char=13)
dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py/DellEnabledCommandProcessor._build_port_strings/original