mobile/vty_interface.c: do not write 'exit' to config

Since we use indenting as means to implicitly exit child nodes,
no need to write 'exit' at the end of each child node.

Change-Id: I73b0f3926d766d21ca68c8e01b7fc70b2b4636c9
This commit is contained in:
Vadim Yanitskiy 2017-10-23 00:33:58 +03:30
parent c5a08ef4f4
commit da9e830af0
1 changed files with 0 additions and 3 deletions

View File

@ -1494,7 +1494,6 @@ static void config_write_ms(struct vty *vty, struct osmocom_ms *ms)
if (!hide_default || set->skip_max_per_band)
vty_out(vty, " %sskip-max-per-band%s",
(set->skip_max_per_band) ? "" : "no ", VTY_NEWLINE);
vty_out(vty, " exit%s", VTY_NEWLINE);
vty_out(vty, " test-sim%s", VTY_NEWLINE);
vty_out(vty, " imsi %s%s", set->test_imsi, VTY_NEWLINE);
switch (set->test_ki_type) {
@ -1530,11 +1529,9 @@ static void config_write_ms(struct vty *vty, struct osmocom_ms *ms)
vty_out(vty, " hplmn-search %s%s",
(set->test_always) ? "everywhere" : "foreign-country",
VTY_NEWLINE);
vty_out(vty, " exit%s", VTY_NEWLINE);
/* no shutdown must be written to config, because shutdown is default */
vty_out(vty, " %sshutdown%s", (ms->shutdown) ? "" : "no ",
VTY_NEWLINE);
vty_out(vty, "exit%s", VTY_NEWLINE);
vty_out(vty, "!%s", VTY_NEWLINE);
}