def get_device_name_prefix(device_name):
    dev_num_pos = 0
    while '0' <= device_name[dev_num_pos - 1] <= '9':
        dev_num_pos -= 1
    return device_name[:dev_num_pos - 1]
Return device name without device number.
dataset/ETHPy150Open openstack/ec2-api/ec2api/tests/functional/base.py/get_device_name_prefix