Where can I find the YANG file of exceptions in ODL ?

asked 2016-03-03 23:29:47 -0700

ShawLinLoveLife gravatar image

There huge amount of yang files in OpenDaylight. Are there any quick methods to searching for YANG files ? Or could we find something like YANG files list in OpenDaylight wiki ?

Thanks in advance.

edit retag flag offensive close merge delete


@ShawLinLoveLife I've been in the same rut for a while. Tried to use the yang-tools parser but it seems have the precondition of full knowledge of the import file tree to use correctly. Tried writing an Antlr4 parser for YANG files only to be shot down by the YANG grammar having several ambiguities.

mdeazley ( 2017-08-29 12:38:08 -0700 )edit

@ShawLinLoveLife Ended up using GNU/Linux command line.. I just pulled down a bunch of the feature repos from git and use the command: find . -type f -name '*.yang' -exec grep -Hn <stringimsearching> {} \; | less

mdeazley ( 2017-08-29 12:41:13 -0700 )edit

The ODL DLUX feature shows relations between YANG files, but omits notifications and RPCs. And watch out for deprecated notificartions!

mdeazley ( 2017-08-29 12:43:29 -0700 )edit