Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Why this yang schema from one device can not be supported by ODL's yang tools

asked 2015-04-29 23:57:18 -0700

freshunter gravatar image

The schema is below. Look at the "element-name" leaf. It is declared as a key in a grouping and its definition will be provided in the following augment.

I tested this yang schema. This schema works well on a device box, but can not be accepted by ODL's yangtools generator. When I removed the declaring line:"key element-name;", the yangtools could build it and generate java codes successfully.

I'd like to know why this yang schema can not be accepted by yangtools. Please give me a point or is there any better way to change this schema. Any help or suggestions are really appreciated. Thank you!!!

grouping test-profile {
      list bin-data {
          /* Each will augment this list to define element-name*/
          key  element-name;
          leaf threshold {
              type exa:UINT32;
              default 0;
          leaf t-name {
              type TCA_NAME_STRING;
              default "";

augment '/config/profile/test-service' {
        list test-service-profile {
            key name;

            leaf name {
                type PROFILE_NAME;

            uses test-profile {
                augment bin-data {
                   leaf element-name {
                       description "Name of the counter";
                       type counters-type;


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-30 14:45:56 -0700

Robert Varga gravatar image

Please open a bug in at , along with the ODL version you are running and the error message/stack produced?

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-04-29 23:57:18 -0700

Seen: 2,844 times

Last updated: Aug 30 '15