Bug 514472

Summary: dumpxml/edit should never show dev='vnet%d'
Product: [Fedora] Fedora Reporter: Gianluca Sforna <giallu>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: berrange, clalance, crobinso, itamar, markmc, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-29 09:47:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gianluca Sforna 2009-07-29 09:42:04 UTC
While diagnosing bug 514228 it was suggested to use virsh to edit the VM's config and remove the <target> line from:

    <interface type='bridge'>
     <mac address='54:52:00:49:73:9a'/>
     <source bridge='br0'/>
     <target dev='vnet%d'/>
   </interface>

which I did. The problem is that after restarting the guest the line is back in the config file.

libvirt-0.6.2-13.fc11.x86_64

Comment 1 Daniel Berrangé 2009-07-29 09:47:26 UTC
This is intended behaviour. We expose the configured NIC backend device in the XML whenever it is available.

Removing this line yourself should not have impacted any functional behaviour, since libvirt already ignores any requested device whose name starts with the string 'vnet'.

Comment 2 Mark McLoughlin 2009-07-29 11:55:48 UTC
Huh?

How does it make sense for libvirt to include 'vnet%d' in dumpxml output?