Discussion:
[rancid] [PATCH] Remove empty lines at the beginning of the running-config
Michael Stefaniuc
2009-12-01 12:51:49 UTC
Permalink
Hello,

I've finally found the time to migrated to from 2.3.2a8 to the final
2.3.2. The difference between the two is that WriteTerm() relies now on
"more system:running-config". On newer IOS (seen it on 12.4(22)Tx but
not on 12.4(15)T or older) that will start with an empty line which gets
saved to the config file giving:
!
config-register 0x2102

!
version 12.4

The attached patch strips empty lines at the beginning of the
running-config.

License: Whatever it takes to get it accepted to rancid.

bye
michael
--
Michael Stefaniuc Tel.: +49-711-96437-199
Consulting Communications Engineer Fax.: +49-711-96437-111
--------------------------------------------------------------------
Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach
Handelsregister: Amtsgericht Muenchen HRB 153243
GeschÀftsfÌhrer: Brendan Lane, Charlie Peters, Michael Cunningham,
Charles Cachera
Loading...