Merge "fix the word 'bandwith'"
This commit is contained in:
commit
0d1858d4bc
@ -3695,7 +3695,7 @@ class OpenStackCloud(
|
|||||||
return _utils._filter_list(rules, rule_id, filters)
|
return _utils._filter_list(rules, rule_id, filters)
|
||||||
|
|
||||||
def list_qos_bandwidth_limit_rules(self, policy_name_or_id, filters=None):
|
def list_qos_bandwidth_limit_rules(self, policy_name_or_id, filters=None):
|
||||||
"""List all available QoS bandwith limit rules.
|
"""List all available QoS bandwidth limit rules.
|
||||||
|
|
||||||
:param string policy_name_or_id: Name or ID of the QoS policy from
|
:param string policy_name_or_id: Name or ID of the QoS policy from
|
||||||
from rules should be listed.
|
from rules should be listed.
|
||||||
@ -3723,7 +3723,7 @@ class OpenStackCloud(
|
|||||||
"/qos/policies/{policy_id}/bandwidth_limit_rules.json".format(
|
"/qos/policies/{policy_id}/bandwidth_limit_rules.json".format(
|
||||||
policy_id=policy['id']),
|
policy_id=policy['id']),
|
||||||
params=filters,
|
params=filters,
|
||||||
error_message="Error fetching QoS bandwith limit rules from "
|
error_message="Error fetching QoS bandwidth limit rules from "
|
||||||
"{policy}".format(policy=policy['id']))
|
"{policy}".format(policy=policy['id']))
|
||||||
return self._get_and_munchify('bandwidth_limit_rules', data)
|
return self._get_and_munchify('bandwidth_limit_rules', data)
|
||||||
|
|
||||||
@ -3751,7 +3751,7 @@ class OpenStackCloud(
|
|||||||
data = self._network_client.get(
|
data = self._network_client.get(
|
||||||
"/qos/policies/{policy_id}/bandwidth_limit_rules/{rule_id}.json".
|
"/qos/policies/{policy_id}/bandwidth_limit_rules/{rule_id}.json".
|
||||||
format(policy_id=policy['id'], rule_id=rule_id),
|
format(policy_id=policy['id'], rule_id=rule_id),
|
||||||
error_message="Error fetching QoS bandwith limit rule {rule_id} "
|
error_message="Error fetching QoS bandwidth limit rule {rule_id} "
|
||||||
"from {policy}".format(rule_id=rule_id,
|
"from {policy}".format(rule_id=rule_id,
|
||||||
policy=policy['id']))
|
policy=policy['id']))
|
||||||
return self._get_and_munchify('bandwidth_limit_rule', data)
|
return self._get_and_munchify('bandwidth_limit_rule', data)
|
||||||
@ -4085,7 +4085,7 @@ class OpenStackCloud(
|
|||||||
|
|
||||||
def list_qos_minimum_bandwidth_rules(self, policy_name_or_id,
|
def list_qos_minimum_bandwidth_rules(self, policy_name_or_id,
|
||||||
filters=None):
|
filters=None):
|
||||||
"""List all available QoS minimum bandwith rules.
|
"""List all available QoS minimum bandwidth rules.
|
||||||
|
|
||||||
:param string policy_name_or_id: Name or ID of the QoS policy from
|
:param string policy_name_or_id: Name or ID of the QoS policy from
|
||||||
from rules should be listed.
|
from rules should be listed.
|
||||||
@ -4113,7 +4113,7 @@ class OpenStackCloud(
|
|||||||
"/qos/policies/{policy_id}/minimum_bandwidth_rules.json".format(
|
"/qos/policies/{policy_id}/minimum_bandwidth_rules.json".format(
|
||||||
policy_id=policy['id']),
|
policy_id=policy['id']),
|
||||||
params=filters,
|
params=filters,
|
||||||
error_message="Error fetching QoS minimum bandwith rules from "
|
error_message="Error fetching QoS minimum bandwidth rules from "
|
||||||
"{policy}".format(policy=policy['id']))
|
"{policy}".format(policy=policy['id']))
|
||||||
return self._get_and_munchify('minimum_bandwidth_rules', data)
|
return self._get_and_munchify('minimum_bandwidth_rules', data)
|
||||||
|
|
||||||
@ -4141,9 +4141,9 @@ class OpenStackCloud(
|
|||||||
data = self._network_client.get(
|
data = self._network_client.get(
|
||||||
"/qos/policies/{policy_id}/minimum_bandwidth_rules/{rule_id}.json".
|
"/qos/policies/{policy_id}/minimum_bandwidth_rules/{rule_id}.json".
|
||||||
format(policy_id=policy['id'], rule_id=rule_id),
|
format(policy_id=policy['id'], rule_id=rule_id),
|
||||||
error_message="Error fetching QoS minimum_bandwith rule {rule_id} "
|
error_message="Error fetching QoS minimum_bandwidth rule "
|
||||||
"from {policy}".format(rule_id=rule_id,
|
"{rule_id} from {policy}".format(
|
||||||
policy=policy['id']))
|
rule_id=rule_id, policy=policy['id']))
|
||||||
return self._get_and_munchify('minimum_bandwidth_rule', data)
|
return self._get_and_munchify('minimum_bandwidth_rule', data)
|
||||||
|
|
||||||
@_utils.valid_kwargs("direction")
|
@_utils.valid_kwargs("direction")
|
||||||
|
Loading…
Reference in New Issue
Block a user