]> git.puffer.fish Git - mirror/frr.git/commit
isisd: fix LFA command to use correct operations
authorRenato Westphal <renato@opensourcerouting.org>
Sun, 6 Dec 2020 01:10:54 +0000 (22:10 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 9 Jan 2021 01:22:11 +0000 (22:22 -0300)
commit7ab5ca104752c180c3756b007c8d3bba88cc7d1b
treeaf5e4e3327073c3b28710d9f6ed18cbda34d75e1
parent077d336aa7f543525c03de5a4617a2314c7ca984
isisd: fix LFA command to use correct operations

The "load-sharing" node is a boolean leaf that has a default
value. As such, it doesn't make sense to either create or delete
it. That node always exists in the configuration tree. Its value
should only be modified. Change the corresponding CLI wrapper
command to reflect that fact.

This commit doesn't introduce any change of behavior as the NB API
maps create/destroy edit operations to modify operations whenever
that makes sense. However it's better to not rely on that behavior
and always use the correct operations in the CLI commands.

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