--- /dev/null
+module foo {
+ namespace foo;
+ prefix foo;
+
+ revision 2017-02-02;
+
+ typedef my-base-enumeration-type {
+ type enumeration {
+ enum white {
+ value 1;
+ }
+ enum yellow;
+ enum red {
+ value 3;
+ }
+ enum black {
+ value 4;
+ }
+ }
+ }
+
+ leaf my-enumeration-leaf {
+ type my-base-enumeration-type {
+ enum yellow;
+ enum red {
+ value 3;
+ }
+ }
+ }
+}
\ No newline at end of file