From f013eacdc81728b875d6e16e89895048392c13f8 Mon Sep 17 00:00:00 2001 From: Dinesh G Dutt Date: Sun, 17 Jul 2016 23:38:51 -0700 Subject: [PATCH] Don't display integrated-vtysh-config as its the default in CL. Ticket: CM-11832 Reviewed By: Testing Done: Testing that its not displayed if enabled & only if disabled In the spirit of not displaying the defaults, we shouldn't display "service integrated-vtysh-config" as its the default. It also tends to clutter the output with stuff the user doesn't know or care about. This patch removes displaying that and only prints it when the option is disabled. --- vtysh/vtysh_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index fcad333b9..eeb635419 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -412,8 +412,8 @@ vtysh_config_write () sprintf (line, "hostname %s", host.name); vtysh_config_parse_line(line); } - if (vtysh_writeconfig_integrated) - vtysh_config_parse_line ("service integrated-vtysh-config"); + if (!vtysh_writeconfig_integrated) + vtysh_config_parse_line ("no service integrated-vtysh-config"); user_config_write (); } -- 2.39.5