revision "2015-02-26";
+ identity foo {
+ description "dummy identity";
+ }
container mapping-nodes {
list multiple-keys {
}
}
- list mapping-node{
+ list mapping-node {
key "id";
leaf id {
type string;
leaf content {
type string;
}
+
+ choice ordered-choice {
+ case a {
+ container ordered-items {
+ list ordered-item {
+ key "id";
+ ordered-by user;
+ leaf id {
+ type string;
+ }
+
+ leaf content {
+ type string;
+ }
+ }
+ }
+ }
+ case b {
+ container augmented-ordered-items {
+
+ }
+ }
+ }
+ }
+ }
+
+ augment "/map:mapping-nodes/map:mapping-node/map:ordered-choice/map:b/map:augmented-ordered-items" {
+ list augmented-ordered-item {
+ key "id";
+ ordered-by user;
+ leaf id {
+ type string;
+ }
+
+ leaf content {
+ type string;
+ }
}
}
}
augment "/map:top/map:modules/" {
- container augmented-container{
+ container augmented-container {
leaf identifier {
type string;
}
}
}
+ augment "/map:top/map:modules/" {
+ leaf leaf-from-augment {
+ type string;
+ }
+ }
+
augment "/map:top" {
container mid-level {
container low-level {
}
}
}
+
+ list toplevel-list {
+ key "id";
+ leaf id {
+ type string;
+ }
+
+ leaf content {
+ type string;
+ }
+ }
+
+ container top-with-presence {
+ presence "For testing presence containers";
+
+ }
}
\ No newline at end of file