]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: "write mem" should write to persistent configuration
authorChristian Franke <nobody@nowhere.ws>
Mon, 5 Dec 2016 18:46:09 +0000 (19:46 +0100)
committerChristian Franke <chris@opensourcerouting.org>
Mon, 5 Dec 2016 18:52:50 +0000 (19:52 +0100)
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
lib/command.c

index 3c429ce1a750f5912fe7c03b9a0d04d3d9c8a37c..39ac54d61ea6ee0fead6c31069d2fd1c44dda19e 100644 (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)