Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyangbindJSON quoting values (ReferencePathType) #139

Open
mike-albano opened this issue Aug 25, 2017 · 1 comment
Open

pyangbindJSON quoting values (ReferencePathType) #139

mike-albano opened this issue Aug 25, 2017 · 1 comment
Assignees

Comments

@mike-albano
Copy link

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";
      }
@nkaliape
Copy link

nkaliape commented Jul 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants