diff options
author | Bala.FA <barumuga@redhat.com> | 2014-03-13 15:23:17 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-28 16:20:46 +0530 |
commit | 576d7248699f8017f2909f548ef80df7217b57a4 (patch) | |
tree | 94f49c58cf64d6e144b86f93e64b3ed0ece6c482 /tests/xml2dictSuccess.xml | |
parent | 3ddcde1155b6c278d7775f52e9197bff47ff37d1 (diff) |
utils: add xml2dict()
The method coverts xml object as elementTree to dictionary.
Change-Id: Ia7eca3eb52a79979d7d1ee9d4ce1c842cc86e8ed
Signed-off-by: Bala.FA <barumuga@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/22
Diffstat (limited to 'tests/xml2dictSuccess.xml')
-rw-r--r-- | tests/xml2dictSuccess.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/xml2dictSuccess.xml b/tests/xml2dictSuccess.xml new file mode 100644 index 0000000..fb35904 --- /dev/null +++ b/tests/xml2dictSuccess.xml @@ -0,0 +1,10 @@ + <timestamp date="2014-03-18" time="13:53:01" utc="1" interval="60"> + <network per="second"> + <net-dev iface="wlp3s0" rxpck="0.00" txpck="0.00" rxkB="0.00" txkB="0.00" rxcmp="0.00" txcmp="0.00" rxmcst="0.00"/> + <net-dev iface="lo" rxpck="0.00" txpck="0.00" rxkB="0.00" txkB="0.00" rxcmp="0.00" txcmp="0.00" rxmcst="0.00"/> + <net-dev iface="virbr0-nic" rxpck="0.00" txpck="0.00" rxkB="0.00" txkB="0.00" rxcmp="0.00" txcmp="0.00" rxmcst="0.00"/> + <net-dev iface="virbr0" rxpck="0.00" txpck="0.00" rxkB="0.00" txkB="0.00" rxcmp="0.00" txcmp="0.00" rxmcst="0.00"/> + <net-dev iface="enp0s26u1u2" rxpck="0.13" txpck="0.25" rxkB="0.01" txkB="0.03" rxcmp="0.00" txcmp="0.00" rxmcst="0.00"/> + <net-dev iface="em1" rxpck="0.00" txpck="0.00" rxkB="0.00" txkB="0.00" rxcmp="0.00" txcmp="0.00" rxmcst="0.00"/> + </network> + </timestamp> |