From: Donald Sharp Date: Mon, 4 Apr 2016 16:40:33 +0000 (-0400) Subject: lib: plist should not CMD_WARNING when command has already been entered X-Git-Tag: frr-2.0-rc1~995 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=77c489986edeaa107c1b201d879bf599fd7be2f6;p=mirror%2Ffrr.git 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 Reviewed-by: Don Slice --- diff --git a/lib/plist.c b/lib/plist.c index 54b9b80e14..99653b93a2 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -994,7 +994,7 @@ vty_prefix_list_install (struct vty *vty, afi_t afi, const char *name, if (! any && lenum) vty_out (vty, " le %d", lenum); vty_out (vty, "%s", VTY_NEWLINE); - return CMD_WARNING; + return CMD_SUCCESS; } /* Install new filter to the access_list. */