]> git.puffer.fish Git - mirror/frr.git/commit
ldpd: do a full configuration reload upon receiving a SIGHUP
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 22 Mar 2017 15:53:36 +0000 (12:53 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 27 Mar 2017 17:54:57 +0000 (14:54 -0300)
commitdbce358222e5483140389795f790cfabd93808e1
tree7bf48db061e0e8fb78228e189a011c48b46c028d
parent1e7e440f5a5555b286e9b6265e9e481d11123fcd
ldpd: do a full configuration reload upon receiving a SIGHUP

The rationale here is to do something very similar to what the original
OpenBSD's ldpd(8) does to reload configuration files:
* create a new empty base configuration (vty_conf);
* parse the configuration file and store the result in vty_conf;
* merge the new configuration into the current configuration.

To do this, introduce a new global variable called "sighup" so that ldpd
doesn't attempt to merge vty_conf into ldpd_conf for each command in
the configuration file, which would be very disruptive. vty_conf should
be merged only after the whole configuration file is parsed in order to
avoid taking actions like shutting down neighbors when not necessary.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/ldp_vty_conf.c
ldpd/ldpd.c
ldpd/ldpd.h