]> git.proxmox.com Git - mirror_frr.git/commit - lib/command.c
lib: optimize non-transactional cli
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 5 Sep 2019 22:43:27 +0000 (19:43 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 5 Sep 2019 23:17:18 +0000 (20:17 -0300)
commit689b9cf5808891f6dada70596767e704082ad44b
treef10d7f8e3b75d731e3c1252b498ebb9331159d29
parent6c11fdb3c46ce27ac0e2440e941add5a43efaf2c
lib: optimize non-transactional cli

Commit eaf6705d7a fixed a problem caused by configuration changes
coming from the kernel. The fix consisted of regenerating the
candidate configuration before every configuration command (when
using the non-transactional CLI mode). There's no need, however,
to regenerate the candidate when it's identical to the running
configuration. Since the northbound keeps track of the version
of each configuration, we can use that information to prevent
regenerating the candidate configuration when that is not necessary.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/command.c