]> git.puffer.fish Git - matthieu/frr.git/commit
Add code to extract.pl.in to prevent further cli function overwrites
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 10 Jun 2015 00:22:42 +0000 (20:22 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 30 May 2016 00:29:58 +0000 (20:29 -0400)
commitb623cda4f1485dd16da0bfc5f9a8ae931360b6eb
tree9f2813c51052099b828f1cf79ec3539ea268f0e0
parentb06fd12526849dd65836a1899a4cabca4525a96d
Add code to extract.pl.in to prevent further cli function overwrites

Currently extract.pl.in is used to build the vtysh cli.  When two
different cli's collide with the same command name, the original
cli is never called, because it is dropped.  This code notes the
silent drop and tracks the number of drops.  If they change then
the code will fail the build.  The current number of drops was
figured out by running extract.pl and counting up the drops
then adding code to compare the numbers returned.

If you have added to the problem, the solution is to fix your cli
command to not stomp on someone else's command.  If you have removed
a stomp, safely modify extract.pl.in as part of your commit.

Signed-off-by: Donald Sharp <sharpd at cumulusnetworks.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
vtysh/extract.pl.in