Add Haskell parser for "xm uptime"
authorMichele Tartara <mtartara@google.com>
Wed, 6 Feb 2013 08:24:49 +0000 (09:24 +0100)
committerMichele Tartara <mtartara@google.com>
Mon, 18 Feb 2013 15:35:10 +0000 (15:35 +0000)
commitc5a957c38be6398a1783f856f7737325751ef278
treebfb9e640b81d99ef0e450e7aaa02d7c2c4c16754
parentb8585908d7189751b679e81ce0b680b1f35f7d75
Add Haskell parser for "xm uptime"

In order to fetch precise information about the uptime of the VMs
running in Xen, we need to analyze the output of the "xm uptime" command.

This commit adds the parser to do that, and its tests.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Makefile.am
src/Ganeti/Hypervisor/Xen/Types.hs
src/Ganeti/Hypervisor/Xen/XmParser.hs
test/data/xen-xm-uptime-4.0.1.txt [new file with mode: 0644]
test/hs/Test/Ganeti/Hypervisor/Xen/XmParser.hs