Add Haskell parser for "xm list --long"
In order to fetch precise information about the status of the VMs running in Xen, we need to analyze the output of the "xm list --long" 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>
Showing
- Makefile.am 10 additions, 0 deletionsMakefile.am
- src/Ganeti/Hypervisor/Xen/Types.hs 107 additions, 0 deletionssrc/Ganeti/Hypervisor/Xen/Types.hs
- src/Ganeti/Hypervisor/Xen/XmParser.hs 139 additions, 0 deletionssrc/Ganeti/Hypervisor/Xen/XmParser.hs
- test/data/xen-xm-list-long-4.0.1.txt 134 additions, 0 deletionstest/data/xen-xm-list-long-4.0.1.txt
- test/hs/Test/Ganeti/Hypervisor/Xen/XmParser.hs 125 additions, 0 deletionstest/hs/Test/Ganeti/Hypervisor/Xen/XmParser.hs
- test/hs/htest.hs 2 additions, 0 deletionstest/hs/htest.hs
Loading
Please register or sign in to comment