2018-12-24 07:27:10 |
Liu Xie |
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 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'}"
}
} |
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'}"
}
} |
|