

def to_vlan_ranges(vlans):
    if (len(vlans) == 0):
        return 'none'
    ranges = group_sequences(vlans, are_in_sequence=(lambda a, b: ((a + 1) == b)))
    return ','.join([to_range_string(r) for r in ranges])

dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py to_vlan_ranges/original