}
typedef my-union {
- type union {
- type int16 {
- range "1..100";
- }
- type int32;
- }
+ type union {
+ type int16 {
+ range "1..100";
+ }
+ type int32;
+ }
}
typedef my-union-ext {
- type my-union;
+ type my-union;
}
typedef nested-union1 {
- type nested-union2;
+ type nested-union2;
}
typedef nested-union2 {
- type union {
- type my-union-ext;
- type string;
- }
+ type union {
+ type my-union-ext;
+ type string;
+ }
}
leaf if-name {
leaf name {
type string;
}
+
+ leaf count {
+ type int8 {
+ range "1..10";
+ }
+ }
leaf nested-type-leaf {
type my-type1;
}
}
refine port {
- must "must-condition" {
- error-message "An error message test";
- error-app-tag "An error app tag test";
- }
description "description of port defined by refine";
reference "port reference added by refine";
config false;