]> git.puffer.fish Git - matthieu/frr.git/commit
lib:fix clear route-map cmd using DEFPY
authorSindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
Mon, 20 Mar 2023 12:15:03 +0000 (05:15 -0700)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 21 Mar 2023 06:59:33 +0000 (06:59 +0000)
commit51c7566f0aff75018fc0051e6e4cf69271951883
treee93a5736fd5fbe1393f8b7503e8a18e4f776679a
parent64de7b58201e9e968cbf7758bd6d1c27310f3261
lib:fix clear route-map cmd using DEFPY

Due to the wrong input argv id, "argv[idx_word]->arg"
fetched in-correctly and it clears all the route-maps instead of
specific one.

Now correct argv id is passed to clear the given route-map counters.

Also, use RMAP_NAME which allows to show list of configured
route-maps in the system.

After Fix:-

Ticket:#3407773
Issue:3407773

Testing: UT done

Before:
TORC11# clear route-map counters
  <cr>
  WORD  route-map name

After:

TORC11# clear route-map counters
  <cr>
  RMAP_NAME  route-map name
     my-as

Signed-off-by: Chirag Shah <chirag@nvidia.com>
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
(cherry picked from commit 463110f7335632d03557f1c5bfdd066b170011a8)
lib/routemap.c