Ask Your Question
0

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;
                   }
                }
           }
    }

Look

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

Robert Varga gravatar image

Please open a bug in at https://bugs.opendaylight.org , along with the ODL version you are running and the error message/stack produced?

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

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

Seen: 2,807 times

Last updated: Aug 30 '15