[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A simple perl script to convert Cisco IOS configuration to HTML with internal links for easier comprehension
- Subject: A simple perl script to convert Cisco IOS configuration to HTML with internal links for easier comprehension
- From: jlmcgraw at gmail.com (Jesse McGraw)
- Date: Fri, 07 Aug 2015 16:09:52 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]> <[email protected]>
CSS? Tests? Ha ha ha ha ha
This is quick and dirty.
That being said, I'd love to see some tests for it, more advanced HTML
output, and also make it a module suitable for using as the back-end of
a web page. I just wanted to get something basic working for my
original purposes.
As for disorganized: what you're seeing in that repository is a bunch of
separate small utilities, it's not all for this one script. This
particular script was split out into 4 separate files so the regexes are
separate from the actual code, otherwise it was a bit too much.
Check it out on your configs and let me know what you think
-Jesse
On 08/07/2015 12:15 PM, Robert Drake wrote:
> I was going to look at this because it sounded interesting. Maybe
> some extra things it could do would be to set div/classes in some
> parts of the config to denote what it is so that the user could apply
> css to style it. That would allow user-defined color syntax
> highlighting of a sort.
>
> Another nice thing would be collapsible sections so if you're only
> interested in BGP you can skip interfaces, or if you want to look at
> route-maps, access-lists, etc.
>
> The project looks a bit disorganized, but I only took a quick glance
> at it so perhaps it does everything exactly as you intend. Are you
> thinking of making any of it into modules, or defining tests? I like
> the idea of running this as part of a post-rancid process, but it
> might also be nice if it was a module that could be run in real-time
> on a config. Then I could have a mojo wrapper daemon that called it
> when users accessed /configs/*-confg, or whatever and returned the
> parsed version.
>
> Anyway, I don't want to create any more work for you, I just wanted to
> kick out some ideas. If I have time I will contribute what I can, but
> I'm already neck deep in some random projects. I don't mind starting
> another one, but I don't want to say I'm doing something and then
> never deliver. :)
>
>
>