Merge "Fix the problem of "qos-dscp-marking-rule-show""

This commit is contained in:
Jenkins 2016-08-29 10:42:56 +00:00 committed by Gerrit Code Review
commit 244f4c5848
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ class CLITestV20QoSDscpMarkingRuleJSON(test_cli20.CLITestV20Base):
cmd = dscp_rule.ShowQoSDscpMarkingRule(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.dscp_res, cmd, self.test_id, args,
[], cmd_resource=self.dscp_cmd_res,
['id'], cmd_resource=self.dscp_cmd_res,
parent_id=policy_id)

View File

@ -1720,10 +1720,10 @@ class Client(ClientBase):
self.qos_dscp_marking_rules_path % policy_id,
retrieve_all, **_params)
def show_dscp_marking_rule(self, rule, policy, body=None):
def show_dscp_marking_rule(self, rule, policy, **_params):
"""Shows information of a certain DSCP marking rule."""
return self.get(self.qos_dscp_marking_rule_path %
(policy, rule), body=body)
(policy, rule), params=_params)
def create_dscp_marking_rule(self, policy, body=None):
"""Creates a new DSCP marking rule."""