[RFE] Enable driver field for the api of service_providers

Bug #1809628 reported by Liu Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Liu Xie

Bug Description

I found the api of service_provider is:

RESOURCE_NAME = "service_provider"
COLLECTION_NAME = "%ss" % RESOURCE_NAME
SERVICE_ATTR = 'service_type'
PLUGIN_ATTR = 'plugin'
DRIVER_ATTR = 'driver'
EXT_ALIAS = 'service-type'

# Attribute Map for Service Provider Resource
# Allow read-only access
RESOURCE_ATTRIBUTE_MAP = {
    COLLECTION_NAME: {
        'service_type': {'allow_post': False, 'allow_put': False,
                         'is_visible': True},
        'name': {'allow_post': False, 'allow_put': False,
                 'is_visible': True},
        'default': {'allow_post': False, 'allow_put': False,
                    'is_visible': True},
    }
}

I found driver filed in the body of response of get_service_providers .Why is there no driver field in the api?

I think there will be some scenarios need to use this filed :
when i create a body for service_profile, i need know the driver what would be used, like this:
{
    "service_profile": {
        "enabled": "true",
        "driver": "neutron_lbaas.drivers.octavia.driver.OctaviaDriver",
        "description": "Dummy profile",
        "metainfo": "{'foo': 'bar'}"
    }
}

Tags: rfe
Liu Xie (liushy)
Changed in neutron:
assignee: nobody → liuxie (liushy)
Liu Xie (liushy)
description: updated
Revision history for this message
Hongbin Lu (hongbin.lu) wrote :

It looks this is API enhancement request so I tagged this bug as RFE. Awaiting for Neutron Driver team to triage this bug.

summary: - Enable driver field for the api of service_providers
+ [RFE] Enable driver field for the api of service_providers
tags: added: rfe
Changed in neutron:
importance: Undecided → Wishlist
Revision history for this message
Miguel Lavalle (minsel) wrote :

Thanks for submitting this RFE. Would you describe the use cases where this would be necessary? Aren't your use cases served by https://developer.openstack.org/api-ref/network/v2/index.html?expanded=show-flavor-details-detail,list-service-profiles-detail#networking-flavors-framework-v2-0-current-flavor-service-profile?

Revision history for this message
Miguel Lavalle (minsel) wrote :

Any interest in continuing this conversation?

Revision history for this message
Miguel Lavalle (minsel) wrote :

Haven't heard back from submitter in two months. Will mark it invalid. Please feel free to restore it in case there is interest in continuing this conversation

Changed in neutron:
importance: Wishlist → Undecided
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.