From: Donatas Abraitis Date: Mon, 30 Aug 2021 12:14:28 +0000 (+0300) Subject: bgpd: Drop redundand `WORD` for no_neighbor_interface_cmd X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b16415108c7c4cf391cabddb9d3538b1becf98c7;p=matthieu%2Ffrr.git bgpd: Drop redundand `WORD` for no_neighbor_interface_cmd Just to be consistent with neighbor_interface_cmd. Signed-off-by: Donatas Abraitis (cherry picked from commit 294d8425652540feec310d66424de78fe467262c) --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index ea0e0a5823..1957767443 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -6777,19 +6777,21 @@ DEFUN (neighbor_interface, { int idx_ip = 1; int idx_word = 3; + return peer_interface_vty(vty, argv[idx_ip]->arg, argv[idx_word]->arg); } DEFUN (no_neighbor_interface, no_neighbor_interface_cmd, - "no neighbor interface WORD", + "no neighbor interface WORD", NO_STR NEIGHBOR_STR - NEIGHBOR_ADDR_STR2 + NEIGHBOR_ADDR_STR "Interface\n" "Interface name\n") { int idx_peer = 2; + return peer_interface_vty(vty, argv[idx_peer]->arg, NULL); }