我的代码如下。
1.
grouping policy-attributes {
container qospolicies {
list qospolicy {
key "uuid";
uses attrs:base-attributes;
uses qos-policy-attributes;
uses bandwidth-limit-attributes;
uses dscp-marking-attributes;
}
}
}
与列表的分组
2.
grouping bandwidth-limit-rules-attributes {
list bandwidth-limit-rule{
leaf qos-rule-id {
type yang:uuid;
description "The rule id of the associated rule";
}
leaf max-kbps {
type uint64;
description "The maximum KBPS value";
}
leaf max-burst-kbps {
type uint64;
description "The burst over the maximum KBPS value";
}
leaf policy-id {
type yang:uuid;
description "The policy id to which the rule is associated";
}
}
}
3.
grouping dscp-marking-rules-attributes {
list dscp-marking-rule{
leaf qos-rule-id {
type yang:uuid;
description "The rule id of the associated rule";
}
leaf dscp-mark {
type uint8{
range "0 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38
| 40 | 46 | 48 | 56 ";}
description "the value of dscp mark";
}
leaf policy-id {
type yang:uuid;
description "the policy id to which the rule is associated";
}
}
}
分组bandwidth-limit-rules-attributes
有带叶子的列表。也bandwidth-limit-rules-attributes
用于分组policy-attributes
。我想知道拥有bandwidth-limit-rules-attributes
in是否有效policy-attributes
。