• L
    network: backend for virNetworkUpdate of portgroups · 8b6f831c
    Laine Stump 提交于
    portgroup elements are located in the toplevel of <network>
    objects. There can be multiple <portgroup> elements, and they each
    have a unique name attribute.
    
    Add, delete, and modify are all supported for portgroup. When deleting
    a portgroup, only the name must be specified in the provided xml - all
    other attributes and subelements are ignored for the purposes of
    matching and existing portgroup.
    
    The bridge driver and virsh already know about the portgroup element,
    so providing this backend should cause the entire stack to work. Note
    that in the case of portgroup, there is no external daemon based on
    the portgroup config, so nothing must be restarted.
    
    It is important to note that guests make a copy of the appropriate
    network's portgroup data when they are started, so although an updated
    portgroup's configuration will have an affect on new guests started
    after the cahange, existing guests won't magically have their
    bandwidth changed, for example. If something like that is desired, it
    will take a lot of redesign work in the way network devices are setup
    (there is currently no link from the network back to the individual
    interfaces using it, much less from a portgroup within a network back
    to the individual interfaces).
    8b6f831c
network_conf.c 95.0 KB