libvirt/tests/sexpr2xmldata
Jim Fehlig 1dd34bbb4b xenconfig: support vif bandwidth in sexpr parser and formatter
The xen sexpr config format has long supported specifying vif rate
limiting, e.g.

  (device
    (vif
      (mac '00:16:3e:1b:b1:47')
      (rate '10240KB/s')
      ...
    )
  )

Add support for mapping rate to and from <bandwidth> in the xenconfig
sexpr parser and formatter. rate is mapped to the required 'average'
attribute of the <outbound> element, e.g.

  <interface type='bridge'>
    ...
    <bandwidth>
      <outbound average='10240'/>
    </bandwidth>
  </interface>

Also add unit tests to check the conversion logic.

This patch benefits both the old xen driver and the libxl driver.
Both drivers gain support for vif bandwidth when converting to/from
domXML and xen-sxpr. In addition, the old xen driver will now be
able to handle vif 'rate' setting when communicating with xend.
2016-01-08 18:56:00 -07:00
..
sexpr2xml-boot-grub.sexpr
sexpr2xml-boot-grub.xml
sexpr2xml-bridge-ipaddr.sexpr
sexpr2xml-bridge-ipaddr.xml
sexpr2xml-curmem.sexpr
sexpr2xml-curmem.xml
sexpr2xml-disk-block-shareable.sexpr
sexpr2xml-disk-block-shareable.xml
sexpr2xml-disk-block.sexpr
sexpr2xml-disk-block.xml
sexpr2xml-disk-drv-blktap2-raw.sexpr
sexpr2xml-disk-drv-blktap2-raw.xml
sexpr2xml-disk-drv-blktap-qcow.sexpr
sexpr2xml-disk-drv-blktap-qcow.xml
sexpr2xml-disk-drv-blktap-raw.sexpr
sexpr2xml-disk-drv-blktap-raw.xml
sexpr2xml-disk-file.sexpr
sexpr2xml-disk-file.xml
sexpr2xml-fv-autoport.sexpr
sexpr2xml-fv-autoport.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-empty-kernel.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-empty-kernel.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-force-hpet.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-force-hpet.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-force-nohpet.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-force-nohpet.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-kernel.sexpr
sexpr2xml-fv-kernel.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-legacy-vfb.sexpr
sexpr2xml-fv-legacy-vfb.xml
sexpr2xml-fv-localtime.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-localtime.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-net-netfront.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-net-netfront.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-parallel-tcp.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-parallel-tcp.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-dev-2-ports.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-dev-2-ports.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-dev-2nd-port.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-dev-2nd-port.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-file.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-file.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-null.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-null.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-pipe.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-pipe.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-pty.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-pty.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-stdio.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-stdio.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-tcp-telnet.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-tcp-telnet.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-tcp.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-tcp.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-udp.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-udp.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-unix.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-serial-unix.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-sound-all.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-sound-all.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-sound.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-sound.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-usbmouse.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-usbmouse.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-usbtablet.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-usbtablet.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-utc.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-utc.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv-v2.sexpr
sexpr2xml-fv-v2.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv.sexpr Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-fv.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-net-bridged.sexpr
sexpr2xml-net-bridged.xml
sexpr2xml-net-e1000.sexpr
sexpr2xml-net-e1000.xml
sexpr2xml-net-routed.sexpr
sexpr2xml-net-routed.xml
sexpr2xml-no-source-cdrom.sexpr
sexpr2xml-no-source-cdrom.xml Xen: tests: use latest XEND_CONFIG_VERSION in sexpr2xml tests 2015-12-17 21:22:33 -07:00
sexpr2xml-pci-devs.sexpr
sexpr2xml-pci-devs.xml
sexpr2xml-pv-bootloader-cmdline.sexpr
sexpr2xml-pv-bootloader-cmdline.xml
sexpr2xml-pv-bootloader.sexpr
sexpr2xml-pv-bootloader.xml
sexpr2xml-pv-localtime.sexpr
sexpr2xml-pv-localtime.xml
sexpr2xml-pv-vcpus.sexpr
sexpr2xml-pv-vcpus.xml
sexpr2xml-pv-vfb-new-vncdisplay.sexpr
sexpr2xml-pv-vfb-new-vncdisplay.xml
sexpr2xml-pv-vfb-new.sexpr
sexpr2xml-pv-vfb-new.xml
sexpr2xml-pv-vfb-type-crash.sexpr
sexpr2xml-pv-vfb-type-crash.xml
sexpr2xml-pv.sexpr
sexpr2xml-pv.xml
sexpr2xml-vif-rate.sexpr xenconfig: support vif bandwidth in sexpr parser and formatter 2016-01-08 18:56:00 -07:00
sexpr2xml-vif-rate.xml xenconfig: support vif bandwidth in sexpr parser and formatter 2016-01-08 18:56:00 -07:00