]> git.puffer.fish Git - mirror/frr.git/commit
tools: run `vtysh -b` once for all-startup 8309/head
authorDavid Lamparter <equinox@diac24.net>
Mon, 22 Mar 2021 19:21:19 +0000 (20:21 +0100)
committerDavid Lamparter <equinox@diac24.net>
Mon, 22 Mar 2021 19:21:19 +0000 (20:21 +0100)
commit5493cdf55e2312e02a2452ffc1752df6a6041891
tree0e130a457e83ebcedca463f508445b246ca51639
parent44544f191cffd8817f3bc945daec499191cffa01
tools: run `vtysh -b` once for all-startup

As noted by Donald:

When FRR is starting all daemons (or restarting them all) FRR is reading
in the configuration 1 time for each daemon specified to run. This is
not a big deal if you have a very small configuration. But with large
configurations FRR is taking long enough that watchfrr is not
establishing connection to all the daemons and starting some over.

Modify the code so that vtysh is only read in at the end of a all
sequence. If we are restarting an individual daemon allow the read in of
the whole config.

Reported-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: David Lamparter <equinox@diac24.net>
tools/frrcommon.sh.in