Hi Chris,
I want to implement a secret XML parser module under the
virttest/libvirt_xml, the secret XML looks like this:
<secret ephemeral='*no*' private='*no*'>
<description>Super secret name of my first puppy</description>
<usage type='*volume*'>
<*volume*>/var/lib/libvirt/images/puppyname.img</volume>
</usage>
</secret>
or
<secret ephemeral='*no*' private='*yes*'>
<description>CEPH passphrase example</description>
<auth type='*ceph*' username='myname'/>
<usage type='*ceph*'>
<*name*>ceph_example</name>
</usage>
</secret>
or
<secret ephemeral='*yes*' private='*yes*'>
<description>Passphrase for the iSCSI example.com server</description>
<auth type='*chap*' username='myname'/>
<usage type='*iscsi*'>
<*target*>libvirtiscsi</target>
</usage>
</secret>
I saw existing XML modules haven't talked about >=2 attributions in '/'
such as "<secret ephemeral='yes' private='yes'>", in addition, the usage
type is a variable and it has
different sub-tag, and some tags are optional such as '<auth xxxxx>', I
want to know
how to implement it in autotest?
Thanks in advance,
Alex
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel