summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 7464e99d48..591e0c3969 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -5728,8 +5728,8 @@ DEFPY(neighbor_capability_software_version,
int ret;
peer = peer_and_group_lookup_vty(vty, neighbor);
- if (peer && peer->conf_if)
- return CMD_SUCCESS;
+ if (!peer)
+ return CMD_WARNING_CONFIG_FAILED;
if (no)
ret = peer_flag_unset_vty(vty, neighbor,