[Linux-ha-dev] Pure Python version of haclient ?
Lars Marowsky-Bree
lmb at suse.de
Mon Jun 11 15:05:25 MDT 2007
On 2007-06-12T03:33:33, Xinwei Hu <hxinwei at gmail.com> wrote:
> Hi all,
>
> I'm trying to run haclient on the Windows platform. The biggest difficulty
> is to port the C code of lib/mgmt to mingw/cygwin platform.
>
> A much eaiser step, which I take now, is to rewrite the client part of
> lib/mgmt in pure python (ctypes + gnutls binding). The windows version of
> haclient now works with minimum modification (popen(uuidgen) is replaced with
> uuid.uuid4()). :)
>
> As this change will impose some extra dependencies on python and python
> libraries, I'd like to know your comments on this :)
>
> The source code is under cleaning up, I'll send it out soon.
SWIG should be able to help you quite a bit there.
Further, Andrew has a gnutls based interface directly to the CIB, just
in case you want to do away with the mgmtd stuff ;-)
Regards,
Lars
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
More information about the Linux-HA-Dev
mailing list