With this commit, we add support for a merlin node to run a specific
script, in case a remote node signals that the cluster configuration is
invalid.
To do so, we have a new CTRL command, INVALID_CLUSTER which will be
sent when a node connects with incompatible cluster configuration. It
will be sent next time a CTRL_ACTIVE was supposed to be sent. The reason
for this is that we immediately disconnect from a node, when an
incompatible config is seen (i.e before we can manage to send a pkt). However
next time a connection attempt is made, the CTRL_INVALUD_CLUSTER packet will
be sent instead of a CTRL_ACTIVE pkt as normal.
With this commit, we add support for a merlin node to run a specific script, in case a remote node signals that the cluster configuration is invalid.
To do so, we have a new CTRL command,
INVALID_CLUSTER
which will be sent when a node connects with incompatible cluster configuration. It will be sent next time a CTRL_ACTIVE was supposed to be sent. The reason for this is that we immediately disconnect from a node, when an incompatible config is seen (i.e before we can manage to send a pkt). However next time a connection attempt is made, theCTRL_INVALUD_CLUSTER
packet will be sent instead of aCTRL_ACTIVE
pkt as normal.