Re: Keepalived configuration file parser / generator

Tom Limoncelli <[email protected]> Thu, 5 Jan 2017 08:20:19 -0500
Newsgroups gmane.linux.keepalived.devel
Message-ID <CAHVFxgn10qvTQMeEQo=92X+NKbxUWzk2tEUbVqRrKN_GDgkT8w@mail.gmail.com>
It isn't officially supported by the keepalived project, but if you
are familiar with the Augeas parser system, they have a "lens" that
lets you parse and update keepalived.conf files:
http://augeas.net/docs/references/lenses/files/keepalived-aug.html

If you have a data structure that represents the desired
configuration, it wouldn't be difficult to turn it into a bunch of
"set" calls to build the desired keepalived.conf file.

Tom

On Thu, Jan 5, 2017 at 6:30 AM, barak adam <[email protected]> wrote:
> My name is Barak Adam and I am working as a Linux Kernel Engineer for MRV
> Communications.
>
> We are now considering the integration of "Keepalived" into our routers for
> VRRP functionality only. I've been building it and evaluating it for the
> last few days.
>
> My question:
>
> Is there any parser / generator which we can use in order to convert our CLI
> commands to configuration entries in the keepalived.conf file and vise versa
> ??
>
> Thanks,
> Barak
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel
>



-- 
Email: [email protected]    Work: [email protected]
Blog:  http://EverythingSysadmin.com

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot