Commit c68a7709 authored by carignani's avatar carignani
Browse files

add validation and linting for YANG files

parent 742c5be8
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -16,4 +16,12 @@ if [ ! $found_data_models ] ; then
    exit 0
fi

exit 1
 No newline at end of file
# This must run error-free and must display all warnings to the user
pyang –strict -p ./yang-models _3gpp-*.yang
ret=$?

echo "------ Linting all YANG files ------"
#  Display all  errors and warnings to the user. Errors are allowed.
pyang --lint-p ./yang-models _3gpp-*.yang  

exit $ret
 No newline at end of file