Remove unnecessary entries in resource prefix map
The fix is trivial but the intent is to signal potential new contributors that they don't need to populate this map if the prefix is empty. Change-Id: Ie012f57deeb0c7ec6242531a415adc8a2f65679d
This commit is contained in:
parent
d3d09d2600
commit
f742a3d6b0
@ -42,20 +42,17 @@ class NetworkClientJSON(service_client.RestClient):
|
|||||||
# The following list represents resource names that do not require
|
# The following list represents resource names that do not require
|
||||||
# changing underscore to a hyphen
|
# changing underscore to a hyphen
|
||||||
hyphen_exceptions = ["service_profiles", "availability_zones"]
|
hyphen_exceptions = ["service_profiles", "availability_zones"]
|
||||||
# the following map is used to construct proper URI
|
# The following map is used to construct proper URI
|
||||||
# for the given neutron resource
|
# for the given neutron resource.
|
||||||
|
# No need to populate this map if the neutron resource
|
||||||
|
# doesn't have a URI prefix.
|
||||||
service_resource_prefix_map = {
|
service_resource_prefix_map = {
|
||||||
'networks': '',
|
|
||||||
'subnets': '',
|
|
||||||
'subnetpools': '',
|
|
||||||
'ports': '',
|
|
||||||
'metering_labels': 'metering',
|
'metering_labels': 'metering',
|
||||||
'metering_label_rules': 'metering',
|
'metering_label_rules': 'metering',
|
||||||
'policies': 'qos',
|
'policies': 'qos',
|
||||||
'bandwidth_limit_rules': 'qos',
|
'bandwidth_limit_rules': 'qos',
|
||||||
'minimum_bandwidth_rules': 'qos',
|
'minimum_bandwidth_rules': 'qos',
|
||||||
'rule_types': 'qos',
|
'rule_types': 'qos',
|
||||||
'rbac-policies': '',
|
|
||||||
'logs': 'log',
|
'logs': 'log',
|
||||||
'loggable_resources': 'log',
|
'loggable_resources': 'log',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user