From 8fa7d4447f5fc49d3f312d23bdbbc5581f5774c3 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Wed, 24 Jul 2019 15:52:03 +0000 Subject: [PATCH] bgpd: solve invalid error message when clearing interface peer Problem reported that if "clear bgp swp1" is issued, an error message is received saying the name or address is malformed. This was because of a change in bgp_vty.c that removed the storing and passing of the interface name for this command. Commit that caused the problem was ac5dec7e88ce2f8cd2943bb61437046718fb34c2. Ticket: CM-25737 Signed-off-by: Don Slice --- bgpd/bgp_vty.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index d7f6b65384..c3266b2918 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -7287,6 +7287,9 @@ DEFUN (clear_ip_bgp_all, } else if (argv_find(argv, argc, "PGNAME", &idx)) { clr_sort = clear_peer; clr_arg = argv[idx]->arg; + } else if (argv_find(argv, argc, "WORD", &idx)) { + clr_sort = clear_peer; + clr_arg = argv[idx]->arg; } else if (argv_find(argv, argc, "(1-4294967295)", &idx)) { clr_sort = clear_as; clr_arg = argv[idx]->arg;