From: Donald Sharp Date: Tue, 31 Jul 2018 19:28:04 +0000 (-0400) Subject: lib: Fix vrf check output to only have 1 line X-Git-Tag: frr-6.1-dev~98^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=410a92bc2b2b047f0d532612453f9d591c2d1fa3;p=matthieu%2Ffrr.git lib: Fix vrf check output to only have 1 line When we issue this command, we are getting: robot# show ip route vrf green json {} % VRF green not found robot# show ip route vrf green % VRF green not found % VRF green not found robot# Fix the command so it only displays one line of output for json or non-json output. Signed-off-by: Donald Sharp --- diff --git a/lib/vrf.h b/lib/vrf.h index 88536eada8..0f4f36be50 100644 --- a/lib/vrf.h +++ b/lib/vrf.h @@ -120,7 +120,6 @@ extern vrf_id_t vrf_name_to_id(const char *); } else { \ vty_out(vty, "%% VRF %s not found\n", NAME); \ } \ - vty_out(vty, "%% VRF %s not found\n", NAME); \ return CMD_WARNING; \ } \ if (vrf->vrf_id == VRF_UNKNOWN) { \