Bug fix.
[sim/o1-interface.git] / ntsimulator / yang / auto-load-yangs.sh
index 3c4f409..fe2a1c1 100755 (executable)
@@ -57,6 +57,13 @@ else
         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..."