Hide Forgot
Description of problem: Currently it's not possible to change the network of an interface while the host is running. To change the network it's required to restart the host.
Apparently the current state of an interface which is connected to a network is not stored in the struct data.network.actual of virDomainNetDef. So this has to be done first to make the change possible.
To clarify this a little bit more. What Hendrik would like to do is to change the virtual network assigned to a virtual nic. We already proposed a patch to do this if the vNIC is assigned to externally configured bridge (see: https://bugzilla.redhat.com/show_bug.cgi?id=784767). This currently does not work with virtual networks created through libvirt because of comment 1.
Sorry this never received a timely response, but this seems to be implemented in libvirt nowadays. I can't find the exact commit though. Doing 'sudo virsh update-device xmlfile' pointing to an XML config with a different network setup is accepted and reflected correctly in the XML