From b7cd3069c0f3a4e025f905e993f7af312cee4ae1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 15 Aug 2018 20:32:36 -0400 Subject: [PATCH] bgpd: Modify warn to info for deprecated commands Modify zlog_warn to zlog_info commands for notification of deprecated commands. Signed-off-by: Donald Sharp --- bgpd/bgp_vty.c | 4 ++-- bgpd/bgp_zebra.c | 2 +- bgpd/bgpd.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index e3efbbf252..aaed29dc87 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -802,7 +802,7 @@ DEFUN_HIDDEN (no_bgp_multiple_instance, vty_out(vty, "This config option is deprecated, and is scheduled for removal.\n"); vty_out(vty, "if you are using this please let the developers know\n"); - zlog_warn("Deprecated option: `bgp multiple-instance` being used"); + zlog_info("Deprecated option: `bgp multiple-instance` being used"); ret = bgp_option_unset(BGP_OPT_MULTIPLE_INSTANCE); if (ret < 0) { vty_out(vty, "%% There are more than two BGP instances\n"); @@ -827,7 +827,7 @@ DEFUN_HIDDEN (bgp_config_type, if (argv_find(argv, argc, "cisco", &idx)) { vty_out(vty, "This config option is deprecated, and is scheduled for removal.\n"); vty_out(vty, "if you are using this please let the developers know!\n"); - zlog_warn("Deprecated option: `bgp config-type cisco` being used"); + zlog_info("Deprecated option: `bgp config-type cisco` being used"); bgp_option_set(BGP_OPT_CONFIG_CISCO); } else bgp_option_unset(BGP_OPT_CONFIG_CISCO); diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 9591fe673f..eeda58fbcf 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1016,7 +1016,7 @@ static int bgp_zebra_tm_connect(struct thread *t) ret = tm_table_manager_connect(zclient); } if (ret < 0) { - zlog_warn("Error connecting to table manager!"); + zlog_info("Error connecting to table manager!"); bgp_tm_status_connected = false; } else { if (!bgp_tm_status_connected) diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 82da0245b5..5002dd4474 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4094,7 +4094,7 @@ static int peer_af_flag_modify(struct peer *peer, afi_t afi, safi_t safi, if (flag & PEER_FLAG_ADDPATH_TX_BESTPATH_PER_AS) { if (!bgp_flag_check( bgp, BGP_FLAG_DETERMINISTIC_MED)) { - zlog_warn( + zlog_info( "%s: enabling bgp deterministic-med, this is required" " for addpath-tx-bestpath-per-AS", peer->host); -- 2.39.5