ha: Ignore per-CPU CHILD_SAs

These only work on initiators (with trap policies), which is something
the plugin doesn't support.
This commit is contained in:
Tobias Brunner 2021-05-31 15:26:27 +02:00
parent 17f2188756
commit 297be45275

View File

@ -66,6 +66,10 @@ METHOD(listener_t, child_keys, bool,
{ /* do not sync SA between nodes */
return TRUE;
}
if (child_sa->use_per_cpu(child_sa))
{ /* ignore per-CPU SAs */
return TRUE;
}
m = ha_message_create(HA_CHILD_ADD);
@ -167,7 +171,10 @@ METHOD(listener_t, child_state_change, bool,
{ /* do not sync SA between nodes */
return TRUE;
}
if (child_sa->use_per_cpu(child_sa))
{ /* ignore per-CPU SAs */
return TRUE;
}
if (state == CHILD_DESTROYING)
{