• D
    network: fix connection usage counts after restart · 7ab9bdd4
    Daniel P. Berrangé 提交于
    Since the introduction of the virNetworkPort object, the network driver
    has a persistent record of ports that have been created against the
    networks. Thus the hypervisor drivers no longer communicate to the
    network driver during libvirtd restart.
    
    This change, however, meant that the connection usage counts were
    no longer re-initialized during a libvirtd restart. To deal with this we
    must iterate over all virNetworkPortDefPtr objects we have and invoke
    the notify callback to record the connection usage count.
    Reviewed-by: NLaine Stump <laine@laine.org>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    7ab9bdd4
virnetworkobj.h 7.7 KB