Code Review
/
sim
/
o1-interface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug fix.
[sim/o1-interface.git]
/
ntsimulator
/
yang
/
auto-load-yangs.sh
diff --git
a/ntsimulator/yang/auto-load-yangs.sh
b/ntsimulator/yang/auto-load-yangs.sh
index
3c4f409
..
fe2a1c1
100755
(executable)
--- a/
ntsimulator/yang/auto-load-yangs.sh
+++ b/
ntsimulator/yang/auto-load-yangs.sh
@@
-57,6
+57,13
@@
else
skip_model=true
fi
done
skip_model=true
fi
done
+
+ isSubmoduleOnly=$(pyang -f submodule --submodule-only $model)
+
+ if [ "$isSubmoduleOnly" == "True" ]; then
+ echo "Skipping installation of model $modelName because it only contains submodules..."
+ continue
+ fi
if [ "$skip_model" = true ]; then
echo "Skipping installation of excluded model $modelName..."
if [ "$skip_model" = true ]; then
echo "Skipping installation of excluded model $modelName..."