You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(test) myohman@myohman:/c/Users/myohman/Downloads/github/ntc-rosetta$ make docs
docker run -it --rm -p 8888:8888 -v /c/Users/myohman/Downloads/github/ntc-rosetta:/ntc_rosetta ntc_rosetta-3.6:latest \
make _docs
cd docs && make html
make[1]: Entering directory '/ntc_rosetta/docs'
cp ../CHANGELOG.rst .
cp ../CONTRIBUTING.rst .
python build_supported_models.py
Traceback (most recent call last):
File "build_supported_models.py", line 166, in <module>
main()
File "build_supported_models.py", line 153, in main
r = RootLinter.lint(getattr(d, processor_type), dm, True, set())
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 397, in lint
res.children[child] = ContainerLinter.lint(child_obj, dm, recursive, ignore)
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 277, in lint
cls, dm, recursive, ignore
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 334, in _process_children
getattr(cls, child_name), dm, recursive, ignore
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 277, in lint
cls, dm, recursive, ignore
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 334, in _process_children
getattr(cls, child_name), dm, recursive, ignore
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 277, in lint
cls, dm, recursive, ignore
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 334, in _process_children
getattr(cls, child_name), dm, recursive, ignore
File "/usr/local/lib/python3.6/site-packages/yangify/linter/__init__.py", line 257, in lint
path = cls.Yangify.path
AttributeError: 'function' object has no attribute 'Yangify'
We have unneeded defined in other models, but I'm wondering if it's due to the type of node that search is:
grouping system-dns-config {
description "DNS / resolver related configuration data";
leaf-list search {
type oc-inet:domain-name;
ordered-by user;
description
"An ordered list of domains to search when resolving
a host name.";
}
}
@dbarrosop Would the appropriate fix for this to add a dummy class for leaf lists within Yangify?
e.g. yangify/parser/__init__.py
class UnneededLeafList(Parser):
pass
OR
class UnneededLeafList(Parser):
def Yangify(ParserData):
pass
And then update the search to be search = UnneededLeafList?
I guess the other option is to just require and implement a class to parse those out, but I'm thinking of there are other use cases that it would be worth it to implement the above.
Experiencing the following exception:
If you try and run
make docs
it errors out due tosearch = unneeded
within the following file:https://github.com/networktocode/ntc-rosetta/blob/develop/ntc_rosetta/parsers/openconfig/junos/openconfig_system/system.py#L27
We have
unneeded
defined in other models, but I'm wondering if it's due to the type of node that search is:Here is the ascii_tree:
The text was updated successfully, but these errors were encountered: