]> git.puffer.fish Git - matthieu/frr.git/commit
lib: plist should not CMD_WARNING when command has already been entered
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Apr 2016 16:40:33 +0000 (12:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Apr 2016 16:40:33 +0000 (12:40 -0400)
commit77c489986edeaa107c1b201d879bf599fd7be2f6
tree4b9e0536988eb3897fab17d19b44e76bfe7adc88
parent81515efc8d03d94b25ef7fa3381195c2881ca87f
lib: plist should not CMD_WARNING when command has already been entered

When you startup zebra and apply a prefix list command, and then at a
later point in time start up additional daemons and then attempt to
apply the integrated-config, the prefix-list command will stop
processing after zebra.

This is because when zebra attempted to process the command, it would
notice that it already had that cli handled and print a vty warning and
then it would return CMD_WARNING. This caused the loop over all the
commands to stop and as such the command would not be sent to all the
individual daemons.

This behavior is exactly the same as it is in the 2.5.X( hell it's
upstream behavior to! ). Modify the plist command to return CMD_SUCCESS
in this case.

Ticket: CM-10248
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
lib/plist.c