]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Create a thread for reading in the cli
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 May 2018 12:35:06 +0000 (08:35 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 19 Jun 2018 12:43:59 +0000 (08:43 -0400)
commit9e224e60dbffd032d7271ec473366048fb6083d4
tree818ad931fea867c8a1b8631aacf993b7a42bee28
parent573de11fab9c6ffd5b647ab1b9b0c23ad99fb52e
lib: Create a thread for reading in the cli

The read in of cli was happening prior to thread
event handling for non-integrated configs.  This
is interesting for 2 reasons:

1) Read-in of integrated configs was after thread
event loop startup, so we had a difference of behavior

2) Read-in can cause a series of events that cause
us to attempt to communicate with zebra.  The zebra
zapi connection only happens after the thread event
loop has been started.  This can cause data that
is being written down to zebra to be lost and
no real way to notice that this has happened and
to recover gracefully.

Modify the code to create a thread event for read
in of client config.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/libfrr.c
lib/libfrr.h