lib: "write mem" should write to persistent configuration

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
Christian Franke 2016-12-05 19:46:09 +01:00 committed by Christian Franke
parent 0577b824e1
commit 74d57f5a1f

View File

@ -1319,9 +1319,8 @@ DEFUN (config_write,
struct vty *file_vty;
struct stat conf_stat;
// if command was 'write terminal', 'write memory' or 'show running-config'
// if command was 'write terminal' or 'show running-config'
if (argc == 2 && (!strcmp(argv[idx_type]->text, "terminal") ||
!strcmp(argv[idx_type]->text, "memory") ||
!strcmp(argv[0]->text, "show")))
{
if (vty->type == VTY_SHELL_SERV)