]> git.puffer.fish Git - mirror/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)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:24 +0000 (15:54 +0300)
commit0f07d9885a1412869e38f0779b866b05d3c164d9
treee20ef7d021afe4af956e53a1ce4b95e5ec7f866a
parentf17954462fbcce90e64824c492686269af03d405
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