diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-20 10:47:00 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-06 20:50:58 +0000 |
| commit | 0e411ce68160c3896d3b6f58906697e8eec7874c (patch) | |
| tree | 974921f104510136a02a162655b09e9e67f954f9 | |
| parent | 0351a28f2a14f542cf20088f2794d0c4144a3cc3 (diff) | |
lib: Modify zlog_warn to vty_out
The vty_prefix_list_install function was modifying the prefix to match the
specified prefix length and warning in the log file. Modify
code to use zlog_info as that a warn implies that something has
gone terribly wrong. Additionally display to the terminal as
well so that user can get immediate feedback from something
that they can correct.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | lib/plist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/plist.c b/lib/plist.c index 5746080127..b374ca1780 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -930,9 +930,11 @@ static int vty_prefix_list_install(struct vty *vty, afi_t afi, const char *name, char buf_tmp[PREFIX2STR_BUFFER]; prefix2str(&p, buf, sizeof(buf)); prefix2str(&p_tmp, buf_tmp, sizeof(buf_tmp)); - zlog_warn( - "Prefix-list %s prefix changed from %s to %s to match length", + vty_out(vty, + "%% Prefix-list %s prefix changed from %s to %s to match length\n", name, buf, buf_tmp); + zlog_info("Prefix-list %s prefix changed from %s to %s to match length", + name, buf, buf_tmp); p = p_tmp; } |
