On Fri, Feb 08, 2019 at 03:56:12PM -0600, Adam Thompson wrote:
> In bgpd.conf(5), for the "dump" directive there is an optional "timeout"
> parameter.  What is its purpose?  I assume from the examples that it's
> denominated in seconds...

Yes it is.
 
> my first guess was to time out on attempting to write to the dump file, but
> that doesn't seem realistic.  It looks like it's a cycle, i.e. the dump file
> will be recreated every X seconds, but if so, why is it called "timeout" and
> not "interval" ?

Because naming is hard :)
 
> I see in the source that MRT_MAX_TIMEOUT is set to 7200 - does this mean
> that if I leave the parameter unset, the MRT file will be re-dumped every 2
> hrs?

No, it just limits the poll timeout but it will only fire once the time
really ran out.
 
> Yes, I'll produce a patch for the manpage if someone can explain what the
> parameter is supposed to do / how it works.

After timeout seconds the file is reopened (or maybe a new file is opened
depending on the strftime expand of the filename). For all and update
dumps this just puts new messages into a new file. For table dumps it will
issue a new dump. e.g.
        dump table "/tmp/rib-dump-%H%M" 300
will create a new table dump every 5 minutes.

Hope that helps.
-- 
:wq Claudio

Reply via email to