diff --git a/src/common/tools/descriptor/Loader.py b/src/common/tools/descriptor/Loader.py
index fea8e24e412976b9aef17758142970f58b46f760..02c3e38d37a8dfa21d2a608ea846554746ba6faf 100644
--- a/src/common/tools/descriptor/Loader.py
+++ b/src/common/tools/descriptor/Loader.py
@@ -425,7 +425,7 @@ class DescriptorLoader:
         assert len(response.links) == self.num_links
 
         response = self.__ctx_cli.GetOpticalLinkList(Empty())
-        assert len(response.optical_links) == self.num_links
+        assert len(response.optical_links) == self.num_optical_links
 
         for context_uuid, num_services in self.num_services.items():
             response = self.__ctx_cli.ListServices(ContextId(**json_context_id(context_uuid)))