emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Some advice on how to use babel to generate cisco configs


From: Karl Voit
Subject: Re: [O] Some advice on how to use babel to generate cisco configs
Date: Thu, 31 Jan 2013 10:50:32 +0100
User-agent: slrn/0.9.9 (Linux)

* Bart Bunting <address@hidden> wrote:
> Good morning,

Hi!

> What I would like to achieve is to have a table containing a few values,
> e.g. ip address vlan number etc.
>
> Then have a cisco config in the org file with markers where the
> substitutions are to be inserted.
> Run through the table and create a node in the org file one for each row
> of the table.

Are you planning to use this as a one-time creation thing or do you
want to re-run (and re-generate) the configs from the same table
multiple times?

> The end result should be a set of cisco configs with the substitutions
> made.  I was hoping to also use shell to call pwgen to generate a
> random password to insert.

If it is one-time only, you might be happy using a yasnippet
template which generates your substitutions.

-- 
Karl Voit




reply via email to

[Prev in Thread] Current Thread [Next in Thread]