[virt-tools-list] [[libosinfo][PATCH] 4/5] RNG: Adapt examples to updated schema

Daniel P. Berrange berrange at redhat.com
Fri Sep 21 09:52:42 UTC 2012


On Mon, Sep 17, 2012 at 05:12:34PM +0200, Michal Privoznik wrote:
> Demo scripts and example database needs to be updated
> to reflect updated RNG schema.
> ---
>  examples/demo.js                  |    2 +-
>  examples/demo.py                  |    2 +-
>  examples/libosinfo-dummy-data.xml |    5 +++--
>  3 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/examples/demo.js b/examples/demo.js
> index 2839063..28cf805 100755
> --- a/examples/demo.js
> +++ b/examples/demo.js
> @@ -34,7 +34,7 @@ for (idx in osnames) {
>  
>  var osid = "http://fedoraproject.org/fedora-11"
>  var hvid = "http://qemu.org/qemu-kvm-0.11.0"
> -var drvclass = "network"
> +var drvclass = "net"
>  //var drvclass = "audio"
>  
>  var os = db.get_os(osid)
> diff --git a/examples/demo.py b/examples/demo.py
> index 1aceef3..bdc9b9a 100755
> --- a/examples/demo.py
> +++ b/examples/demo.py
> @@ -35,7 +35,7 @@ for name in hvnames:
>  
>  osid = "http://fedoraproject.org/fedora-11"
>  hvid = "http://qemu.org/qemu-kvm-0.11.0"
> -drvclass = "network"
> +drvclass = "net"
>  #drvclass = "audio"
>  
>  os = db.get_os(osid)
> diff --git a/examples/libosinfo-dummy-data.xml b/examples/libosinfo-dummy-data.xml
> index 251df76..65d23b7 100644
> --- a/examples/libosinfo-dummy-data.xml
> +++ b/examples/libosinfo-dummy-data.xml
> @@ -8,7 +8,6 @@
>    <vendor>0x1274</vendor>
>    <product>0x5000</product>
>    <name>ES1370</name>
> -  <name>es1370</name>
>  </device>
>  
>  <device id="http://pci-ids.ucw.cz/read/PC/1274/1371/80864541">
> @@ -32,7 +31,7 @@
>  
>  <device id="http://pci-ids.ucw.cz/read/PC/a727/0013">
>    <!-- 3CRPAG175 Wireless PC Card -->
> -  <class>network</class>
> +  <class>net</class>
>    <bus-type>pci</bus-type>
>    <vendor>0xa727</vendor>
>    <product>0x0013</product>
> @@ -44,6 +43,7 @@
>    <short-id>kvm-0.11.0</short-id>
>    <name>KVM 0.11.0</name>
>    <version>0.11.0</version>
> +  <vendor>qemu</vendor>
>    <devices>
>      <device id="http://pci-ids.ucw.cz/read/PC/1002/4382" />
>      <device id="http://pci-ids.ucw.cz/read/PC/1274/5000" />
> @@ -88,6 +88,7 @@
>  <os id="http://fedoraproject.org/fedora-10">
>    <short-id>fedora10</short-id>
>    <name>Fedora 10</name>
> +  <version>10</version>
>    <vendor>Fedora Project</vendor>
>  
>    <!-- Device support for unspecified platform -->

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list