From 77c489986edeaa107c1b201d879bf599fd7be2f6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 4 Apr 2016 12:40:33 -0400 Subject: [PATCH] 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 --- lib/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.39.5