pyangbind icon indicating copy to clipboard operation
pyangbind copied to clipboard

pyangbindJSON quoting values (ReferencePathType)

Open mike-albano opened this issue 7 years ago • 1 comments

The leaf-list key is quoted even though it's an uint8. The leaf node is not quoted.

Example: { "key1": { "1": { "config": { "id": 1 << not quoted. }, "id": "1" << quoted. },

Corrosponding model: grouping radio-common-config { description "Configuration items common to all Radio interfaces, independent of frequency";

leaf id {
  type uint8;
  description
    "Unique ID of the radio.";
}

container radios { description "Top level container for radios, including configuration and state data.";

  list radio {
    key "id";
    description
      "The list of radios on the device.";

    leaf id {
      type leafref {
        path "../config/id";
      }

mike-albano avatar Aug 25 '17 19:08 mike-albano

Yes. Same issue hit in Openconfig VLAN as well + for leaf-ref also.

nkaliape avatar Jul 06 '18 22:07 nkaliape