Merge "Fix the problem of "qos-bandwidth-limit-rule-show""
This commit is contained in:
commit
93b6fe1d4f
@ -131,7 +131,7 @@ class CLITestV20QoSBandwidthLimitRuleJSON(test_cli20.CLITestV20Base):
|
|||||||
cmd = bw_rule.ShowQoSBandwidthLimitRule(test_cli20.MyApp(sys.stdout),
|
cmd = bw_rule.ShowQoSBandwidthLimitRule(test_cli20.MyApp(sys.stdout),
|
||||||
None)
|
None)
|
||||||
policy_id = 'policy_id'
|
policy_id = 'policy_id'
|
||||||
args = [self.test_id, policy_id]
|
args = ['--fields', 'id', self.test_id, policy_id]
|
||||||
self._test_show_resource(self.res, cmd, self.test_id, args,
|
self._test_show_resource(self.res, cmd, self.test_id, args,
|
||||||
[], cmd_resource=self.cmd_res,
|
['id'], cmd_resource=self.cmd_res,
|
||||||
parent_id=policy_id)
|
parent_id=policy_id)
|
||||||
|
@ -1693,10 +1693,10 @@ class Client(ClientBase):
|
|||||||
self.qos_bandwidth_limit_rules_path % policy_id,
|
self.qos_bandwidth_limit_rules_path % policy_id,
|
||||||
retrieve_all, **_params)
|
retrieve_all, **_params)
|
||||||
|
|
||||||
def show_bandwidth_limit_rule(self, rule, policy, body=None):
|
def show_bandwidth_limit_rule(self, rule, policy, **_params):
|
||||||
"""Fetches information of a certain bandwidth limit rule."""
|
"""Fetches information of a certain bandwidth limit rule."""
|
||||||
return self.get(self.qos_bandwidth_limit_rule_path %
|
return self.get(self.qos_bandwidth_limit_rule_path %
|
||||||
(policy, rule), body=body)
|
(policy, rule), params=_params)
|
||||||
|
|
||||||
def create_bandwidth_limit_rule(self, policy, body=None):
|
def create_bandwidth_limit_rule(self, policy, body=None):
|
||||||
"""Creates a new bandwidth limit rule."""
|
"""Creates a new bandwidth limit rule."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user