Fix the problem of "qos-bandwidth-limit-rule-show"

Add a arg "**_params" in show_bandwidth_limit_rule() to use the
"-F" option.

Change-Id: I1bee877a2e83801527bcccffe404053b6aafe012
Partial-Bug: #1587291
This commit is contained in:
SongmingYan
2016-06-08 04:19:39 -04:00
committed by Songming Yan
parent a33edfa08d
commit d875cb34b9
2 changed files with 4 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ class CLITestV20QoSBandwidthLimitRuleJSON(test_cli20.CLITestV20Base):
cmd = bw_rule.ShowQoSBandwidthLimitRule(test_cli20.MyApp(sys.stdout),
None)
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,
[], cmd_resource=self.cmd_res,
['id'], cmd_resource=self.cmd_res,
parent_id=policy_id)

View File

@@ -1693,10 +1693,10 @@ class Client(ClientBase):
self.qos_bandwidth_limit_rules_path % policy_id,
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."""
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):
"""Creates a new bandwidth limit rule."""