• D
    network: convert hook script to take a network port XML · 6394cf97
    Daniel P. Berrangé 提交于
    When (un)plugging an interface into a network, the 'plugged'
    and 'unplugged' operations are invoked in the hook script.
    
    The data provided to the script contains the network XML, the
    domain XML and the domain interface XML. When we strictly split the
    drivers up this will no longer be possible and thus breakage is
    unavoidable. The hook scripts are not considered to be covered by the
    API guarantee so this is OK.
    
    To avoid existing scripts taking the wrong action, the existing
    operations are changed to 'port-created' and 'port-deleted'
    instead. These will receive the network XML and the network port
    XML.
    Reviewed-by: NLaine Stump <laine@laine.org>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    6394cf97
bridge_driver.c 180.0 KB