gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

FR: add `with-module-names` to `gnmic path` command.

Open hellt opened this issue 2 years ago • 0 comments

gnmic path command allows to extract paths from yang models in different formats. Currently, the following flavours are available:

[
  {
    "path": "/acl/capture-filter/ipv4-filter/entry[sequence-id=*]/description",
    "path-with-prefix": "/srl_nokia-acl:acl/capture-filter/ipv4-filter/entry[sequence-id=*]/description",
    "type": "description",
    "description": "Description string for the filter entry",
    "namespace": "urn:srl_nokia/acl"
  }
]

Unfortunately, path-with-prefix is not the fully qualified path, as it needs to have module names, and not prefixes.

E.g. srl_nokia-if -- prefix, whereas srl_nokia-interfaces - module name.

hellt avatar Apr 03 '23 15:04 hellt