]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix the "set metric" route-map command
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 9 Sep 2020 16:28:47 +0000 (13:28 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 9 Sep 2020 17:53:26 +0000 (14:53 -0300)
commitadd39cde9d316337b2b62a7367dd34d72c15bff9
treef98d72b30e79465c772eadced83e696192a5efde
parent5ceb842f455a9b5ec738f7f52aad3a33e1ebf67c
lib: fix the "set metric" route-map command

The "set metric" command wasn't processing metric additions and
subtractions (using + and -) correctly. Fix those problems.

Also, remove the "+metric" and "-metric" options since they don't
work and don't make any sense (they could be interpreted as unitary
increments/decrements but that was never supported).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/routemap_cli.c
lib/routemap_northbound.c
yang/frr-route-map.yang