summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-20 04:16:04 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-06-20 12:36:19 -0400
commit5dbef72f7f12aa01830e90a398d8ad5baef05cfd (patch)
tree27ce0051a6fa00d6aeca920eecd6316c12ce3eb7
parent6d9ed6df1b9fe76359dd28e49278eda8c99d7d45 (diff)
bgpd: Do not display to end user not found afi/safi's
When we are issuing a new command: router bgp bgp default local-preference .. -or- bgp cluster-id ... -or- bgp disable-ebgp-connected-route-check Do not tell them that afi/safi's are not configured. There is nothing to do with this information and it will create confusion in the end user that we are looking for afi/safi's that are never going to be configed. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--bgpd/bgp_vty.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 22e9469a73..4819758e0f 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -624,18 +624,12 @@ static int bgp_clear(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi,
if (ret < 0)
bgp_clear_vty_error(vty, peer, afi, safi, ret);
- else
- found = true;
}
/* This is to apply read-only mode on this clear. */
if (stype == BGP_CLEAR_SOFT_NONE)
bgp->update_delay_over = 0;
- if (!found)
- vty_out(vty, "%%BGP: No %s peer configured\n",
- afi_safi_print(afi, safi));
-
return CMD_SUCCESS;
}