Project

General

Profile

Actions

Bug #6440

open

VTY: 'write file' breaks 'show startup-config'

Added by fixeria 27 days ago. Updated 23 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/22/2024
Due date:
% Done:

0%

Spec Reference:

Description

In my understanding, show startup-config is supposed to show the initial config file that was loaded during the process startup. However, saving the current configuration by doing write file [FILE] currently breaks show startup-config:

$ ./tests/vty/vty_transcript_test -c ./tests/vty/vty_transcript_test.cfg
<0000> telnet_interface.c:88 Available via telnet 127.0.0.1 42042

$ telnet localhost 42042
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Welcome to the vty_transcript_test VTY interface

vty_transcript_test> en
vty_transcript_test# show startup-config 
line vty
 no login

vty_transcript_test# write file /tmp/backup.cfg
Configuration saved to /tmp/backup.cfg

vty_transcript_test# show startup-config 
!
! vty_transcript_test (1.9.0.195-f2ea) configuration saved from vty
!!
!
line vty
 no login
!

It gets even worse if saving the configuration fails for whatever reason:

vty_transcript_test# write file /dev/null
Can't open configuration file /dev/null.ul7SbU.
vty_transcript_test# show startup-config 
vty_transcript_test#
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)