declare -a excludedModules=()
-# Uninstall the NTS Manager YANG model
-$SYSREPOCTL -u -m network-topology-simulator
-# $SYSREPOCTL -u -m iana-if-type
-# $SYSREPOCTL -u -m ietf-ip
-# $SYSREPOCTL -u -m ietf-interfaces
-
-
sleep 5
pyang -f clearmust *.yang
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..."