1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/tests/xlconfigdata
Jim Fehlig ec63000a62 xenconfig: support vif bandwidth in xm and xl parser and formatter
Both xm and xl config have long supported specifying vif rate
limiting, e.g.

vif = [ 'mac=00:16:3E:74:3d:76,bridge=br0,rate=10MB/s' ]

Add support for mapping rate to and from <bandwidth> in the xenconfig
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 a unit test to check the conversion logic.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2016-01-08 18:56:00 -07:00
..
test-fullvirt-direct-kernel-boot.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-direct-kernel-boot.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-multiusb.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-fullvirt-multiusb.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-new-disk.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-new-disk.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-paravirt-maxvcpus.cfg Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-paravirt-maxvcpus.xml Xen: support maxvcpus in xm and xl config 2015-12-18 17:52:00 -07:00
test-spice-features.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-spice-features.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-spice.cfg Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-spice.xml Xen: tests: use latest XEND_CONFIG_VERSION in xm/xl tests 2015-12-17 21:22:33 -07:00
test-vif-rate.cfg xenconfig: support vif bandwidth in xm and xl parser and formatter 2016-01-08 18:56:00 -07:00
test-vif-rate.xml xenconfig: support vif bandwidth in xm and xl parser and formatter 2016-01-08 18:56:00 -07:00