From b16415108c7c4cf391cabddb9d3538b1becf98c7 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 30 Aug 2021 15:14:28 +0300 Subject: [PATCH] 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) --- bgpd/bgp_vty.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.39.5