Re: Keepalived configuration file parser / generator

barak adam <[email protected]> Thu, 5 Jan 2017 19:22:04 +0200
Newsgroups gmane.linux.keepalived.devel
Message-ID <CAAme7on4Np-bkk_y7VShPBtmPbLW7RLaH3uwoeT_csU+=ZOA5w@mail.gmail.com>
Hey Tom,

Thanks a lot for the reference to Augeas parser system.
Did you use it? Assuming I am having a configuration structure, can you
please provide a short example of how to use it?
Our system and CLI are written in C.

BTW - is the method of updating the configuration file and then reload the
Keepalived daemon to get the changes, is it a good / popular practice?

Thanks again
Barak

On Thu, Jan 5, 2017 at 3:20 PM, Tom Limoncelli <[email protected]> wrote:

> 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

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel