• L
    network: use bandwidth from portgroup when appropriate · 7d480a46
    Laine Stump 提交于
    The bandwidth plug and unplug functions were assuming that an
    interface's bandwidth setting was always specified directly in the
    domain's <interface> definition, but that's not necessarily true - it
    could have been obtained from a <portgroup> definition in the network
    definition. This patch fixes those functions to use
    virDomainNetGetActualBandwidth(), which gets the bandwidth pointer
    from iface->data.network.actual if it exists, otherwise returns
    iface->bandwidth.
    7d480a46
bridge_driver.c 156.9 KB