Skip to content
Snippets Groups Projects
Commit 9ccc623a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

PathComp component:

- Frontend: ensure links have exactly 2 endpoints
- Backend: allow larger number of endpoints per node
parent d8aae80f
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!43CI pipeline and multiple module fixes
...@@ -121,7 +121,7 @@ struct map_nodes_t { ...@@ -121,7 +121,7 @@ struct map_nodes_t {
}; };
#define MAX_NUM_VERTICES 20 // 100 # LGR: reduced from 100 to 20 to divide by 5 the memory used #define MAX_NUM_VERTICES 20 // 100 # LGR: reduced from 100 to 20 to divide by 5 the memory used
#define MAX_NUM_EDGES 20 // 100 # LGR: reduced from 100 to 20 to divide by 5 the memory used #define MAX_NUM_EDGES 40 // 100 # LGR: reduced from 100 to 40 to divide by 2.5 the memory used
// Structures for the graph composition // Structures for the graph composition
struct targetNodes_t { struct targetNodes_t {
// remote / targeted node // remote / targeted node
...@@ -154,7 +154,7 @@ struct context_t { ...@@ -154,7 +154,7 @@ struct context_t {
//////////////////////////////////////////////////// ////////////////////////////////////////////////////
// Structure for the Set of Contexts // Structure for the Set of Contexts
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
#define MAX_NUMBER_CONTEXT 5 // 100 # LGR: reduced from 100 to 5 to divide by 20 the memory used #define MAX_NUMBER_CONTEXT 1 // 100 # LGR: reduced from 100 to 1 to divide by 100 the memory used
struct contextSet_t { struct contextSet_t {
struct context_t contextList[MAX_NUMBER_CONTEXT]; struct context_t contextList[MAX_NUMBER_CONTEXT];
gint num_context_set; gint num_context_set;
...@@ -251,7 +251,7 @@ struct endPoint_t { ...@@ -251,7 +251,7 @@ struct endPoint_t {
// Structure for the device contents // Structure for the device contents
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
#define MAX_DEV_TYPE_SIZE 128 #define MAX_DEV_TYPE_SIZE 128
#define MAX_DEV_ENDPOINT_LENGTH 10 #define MAX_DEV_ENDPOINT_LENGTH 40 // 10 # LGR: controllers might have large number of endpoints
struct device_t { struct device_t {
gchar deviceId[UUID_CHAR_LENGTH]; // device ID using UUID (128 bits) gchar deviceId[UUID_CHAR_LENGTH]; // device ID using UUID (128 bits)
......
...@@ -68,6 +68,7 @@ class _Algorithm: ...@@ -68,6 +68,7 @@ class _Algorithm:
if isinstance(grpc_links, LinkList): grpc_links = grpc_links.links if isinstance(grpc_links, LinkList): grpc_links = grpc_links.links
for grpc_link in grpc_links: for grpc_link in grpc_links:
json_link = compose_link(grpc_link) json_link = compose_link(grpc_link)
if len(json_link['link_endpoint_ids']) != 2: continue
self.link_list.append(json_link) self.link_list.append(json_link)
link_uuid = json_link['link_Id'] link_uuid = json_link['link_Id']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment