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
..
2014-09-03 09:36:13 -06:00
2015-05-21 18:13:18 +02:00
2015-10-21 15:03:35 +02:00
2015-04-23 17:08:48 -04:00
2015-06-25 09:11:15 +02:00
2015-04-27 16:03:31 +02:00
2015-05-21 18:13:18 +02:00
2015-10-21 15:03:35 +02:00
2014-11-25 08:47:12 -07:00
2015-04-14 19:33:02 +02:00
2015-04-14 19:33:02 +02:00
2015-10-21 15:03:35 +02:00
2015-04-23 17:08:48 -04:00