leaf testleaf {
type data:my-type1 {
- range "min..max";
+ range "12..max";
}
}
}
leaf leaf-with-length {
- type data:my-string-type {
- length "7..max";
- }
+ type data:my-string-type {
+ length "7..max";
+ }
}
leaf test-int-leaf {
}
leaf union-leaf {
- type data:my-union-ext;
+ type data:my-union-ext;
}
deviation /data:system/data:user {
}
leaf nested-union-leaf {
- type data:nested-union1;
+ type data:nested-union1;
}
leaf custom-union-leaf {
leaf ds0ChannelNumber {
type string;
}
+ leaf interface-id {
+ type leafref {
+ path "/if:interfaces/if:interface/if:name";
+ }
+ }
+ leaf-list higher-layer-if {
+ type leafref {
+ path "/if:interfaces/if:interface/if:higher-layer-if";
+ }
+ }
+ leaf my-type {
+ type data:my-type1;
+ }
+ container schemas {
+ }
}
-
+
+ container mycont {
+ container innercont {
+ typedef mytype {
+ type string;
+ }
+
+ leaf myleaf {
+ type mytype;
+ }
+ }
+ }
+
}