Modify key for 'qos-minimum-bandwidth-rule-list' reponse
The result of 'qos-minimum-bandwidth-rule-list' response is wrong, because the key in response information is 'minimum_bandwidth_rules' and not 'qos_minimum_bandwidth_rules' Change-Id: Ic87fffd60f004a9b989f43e93aaeee2dc5cb300c Closes-Bug:#1643849
This commit is contained in:
parent
9b3658d474
commit
5031501283
@ -138,5 +138,6 @@ class CLITestV20QoSMinimumBandwidthRuleJSON(test_cli20.CLITestV20Base):
|
||||
policy_id = 'policy_id'
|
||||
args = [policy_id]
|
||||
contents = [{'name': 'rule1', 'min-kbps': 1000, 'direction': 'egress'}]
|
||||
self._test_list_resources(self.cmd_ress, cmd, parent_id=policy_id,
|
||||
self._test_list_resources(self.ress, cmd, parent_id=policy_id,
|
||||
cmd_resources=self.cmd_ress,
|
||||
base_args=args, response_contents=contents)
|
||||
|
@ -1845,7 +1845,7 @@ class Client(ClientBase):
|
||||
"""Fetches a list of all minimum bandwidth rules for the given policy.
|
||||
|
||||
"""
|
||||
return self.list('qos_minimum_bandwidth_rules',
|
||||
return self.list('minimum_bandwidth_rules',
|
||||
self.qos_minimum_bandwidth_rules_path %
|
||||
policy_id, retrieve_all, **_params)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user