Merge "Fix the problem of "qos-dscp-marking-rule-show""
This commit is contained in:
commit
244f4c5848
@ -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)
|
||||
|
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user