summaryrefslogtreecommitdiff
path: root/lib/imsg-buffer.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-20 15:07:36 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-21 03:11:02 -0400
commit470bc6191952eb590b8157c4928190ef66fdd6ba (patch)
tree364f0692071599bb1872b28590a266daadae4583 /lib/imsg-buffer.c
parent18febdb05a0dc854ae0fd6657a62b95ddb795c17 (diff)
watchfrr, vtysh: do not write config during crash
If a daemon is restarting, crashed, or otherwise in the process of reconnecting to watchfrr and a user issues "write memory" or "write file" the resulting config will not include the configuration of that daemon. This is problematic because this output will overwrite the previous config, potentially causing unintentional loss of configuration stored only in the config file based upon timing. This patch remedies that by making watchfrr check that all daemons are up before attempting a configuration write, and updating vtysh so that its failsafe respects this condition as well. Note that this issue only manifests when using integrated config. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/imsg-buffer.c')
0 files changed, 0 insertions, 0 deletions