module bug5968 { yang-version 1; namespace bug5968; prefix bug5968; revision 2016-07-28 { description "test"; } container root { list my-list { key "list-id"; leaf list-id { type string; } leaf mandatory-leaf { type string; mandatory true; } leaf common-leaf { type string; } } } }