Skip to content

top-level lists are silenty ignored in get #18

Description

@jktjkt
module wtf {
  prefix "wtf";
  namespace "wtf";
  list foo {
    key x;
    leaf x {
      type string;
    }
  }
}

When using that with either sysrepo-cli or netconf-cli-local, the top-levle items are apparently ignored by get. I do see them in dump json at least:

/> create /wtf:foo[x='a']
/> create /wtf:foo[x='b']
/> commit
/> get /wtf:foo
/> get /wtf:*
/> dump json
...
  "wtf:foo": [
    {
      "x": "a"
    },
    {
      "x": "b"
    }
  ]
}

The yang-cli appears to work OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions