]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: solve invalid error message when clearing interface peer
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 24 Jul 2019 15:52:03 +0000 (15:52 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Fri, 26 Jul 2019 16:48:22 +0000 (16:48 +0000)
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 <dslice@cumulusnetworks.com>
bgpd/bgp_vty.c

index d7f6b65384220c269b21b3a96a827797a299bae7..c3266b2918682e9cf90ee1b7b0eb575ab8a32b67 100644 (file)
@@ -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;