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

Revision history [back]

click to hide/show revision 1
initial version

How to order list elements on ODL RestConf API Documentation

I check RFC6020 and defined "ordered-by user;" in yang file.

example:

  list node {
    ordered-by user;

    key "A";
    unique "A B";

    leaf A {
      type uint32;
    }
    leaf B {
      type string;
    }
    leaf C {
      type string;
    }

But when I get operational data on "http://localhost:8181/apidoc/explorer/index.html"

The output order of list in Response Body maybe is B, A, C

How could I arrange the order as I want ? (A, B, C)

How to order list elements on ODL RestConf API Documentation

I check RFC6020 and defined "ordered-by user;" in yang file.

example:

  list node {
    ordered-by user;

    key "A";
    unique "A B";

    leaf A {
      type uint32;
    }
    leaf B {
      type string;
    }
    leaf C {
      type string;
    }

But when I get operational data on "http://localhost:8181/apidoc/explorer/index.html"

The output order of list in Response Body maybe is B, A, C

How could I arrange the order as I want ? (A, B, C)

How to order list elements on ODL RestConf API Documentation

I check RFC6020 and defined "ordered-by user;" in yang file.

example:

  list node {
    ordered-by user;

    key "A";
    unique "A B";

    leaf A {
      type uint32;
    }
    leaf B {
      type string;
    }
    leaf C {
      type string;
    }

But when I get operational data on "http://localhost:8181/apidoc/explorer/index.html"

The output order of list in Response Body maybe is B, A, C

How could I arrange the order as I want ? (A, B, C)

How to order list elements on ODL RestConf API Documentation

I check RFC6020 and defined "ordered-by user;" in yang file.

example:

  list node {
    ordered-by user;

    key "A";
    unique "A B";

    leaf A {
      type uint32;
    }
    leaf B {
      type string;
    }
    leaf C {
      type string;
    }

But when I get operational data on "http://localhost:8181/apidoc/explorer/index.html"

The output order of list in Response Body maybe is B, A, C

How could I arrange the order as I want ? (A, B, C)

How to order list elements on ODL RestConf API Documentation

I check RFC6020 and defined "ordered-by user;" in yang file.

example:

  list node {
    ordered-by user;

    key "A";
    unique "A B";

    leaf A {
      type uint32;
    }
    leaf B {
      type string;
    }
    leaf C {
      type string;
    }

But when I get operational data on "http://localhost:8181/apidoc/explorer/index.html"

The output order of list in Response Body maybe is B, A, C

How could I arrange the order as I want ? (A, B, C)