lib: fix comparaison of flex-algo definition

Fix comparaison of flex-algo definition by comparing all the definition
statements.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
Louis Scalbert 2023-04-28 11:20:50 +02:00
parent 3f55b8c621
commit cc1f9bd9e2

View File

@ -79,6 +79,12 @@ bool flex_algo_definition_cmp(struct flex_algo *fa1, struct flex_algo *fa2)
return false;
if (fa1->metric_type != fa2->metric_type)
return false;
if (fa1->exclude_srlg != fa2->exclude_srlg)
return false;
if (fa1->flags != fa2->flags)
return false;
if (fa1->unsupported_subtlv != fa2->unsupported_subtlv)
return false;
if (!admin_group_cmp(&fa1->admin_group_exclude_any,
&fa2->admin_group_exclude_any))