module bar { namespace bar; prefix bar; yang-version 1.1; revision 2017-02-02; typedef my-base-bits-type { type bits { bit bit-a { position 1; } bit bit-b; bit bit-c { position 3; } bit bit-d { position 4; } } } typedef my-derived-bits-type { type my-base-bits-type { bit bit-b; bit bit-c { position 3; } bit bit-d { position 6; } } } leaf my-bits-leaf { type my-derived-bits-type { bit bit-b; bit bit-c { position 3; } } } }