def _get_device_type(policy_type, in_device):
    if policy_type == "boot-order-policy":
        for device_type, device_props in policy_device_dict.items():
            if device_props["class_id"] == in_device._class_id and \
                    device_props["access"] == in_device.access: