[rancid] [PATCH] Remove empty lines at the beginning of the running-config
Michael Stefaniuc
mstefani at redhat.com
Tue Dec 1 12:51:49 UTC 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rancid-2.3.2-skipempty.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091201/3aba964a/attachment.bin
More information about the Rancid-discuss
mailing list