I need to know if there are any tools that can take .yang file as an input and return all the XPaths that will be present. (I tried pyang, but I couldn't find any option to convert to XPath)
For example:
if .yang file is :
-------------------------------
grouping grouping-foo {
leaf g-foo;
leaf g-bar;
}
container foo {
leaf bar;
uses grouping-foo;
}
-------------------------------
Then output should be:
-------------------------------
/foo/bar
/foo/g-foo
/goo/g-bar
-------------------------------