gnmic
gnmic copied to clipboard
FR: add `with-module-names` to `gnmic path` command.
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.