Description of problem: interface name can't be changed when define a vlan type interface Version-Release number of selected component (if applicable): libvirt-3.2.0-3.el7.x86_64 netcf-0.2.8-4.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. # cat vlan.xml <interface type='vlan' name='vlan'> <start mode='onboot'/> <protocol family='ipv4'> <ip address='192.168.177.1' prefix='24'/> </protocol> <vlan tag='1'> <interface name='eno1'/> </vlan> </interface> 2. # virsh iface-define vlan.xml Interface vlan defined from vlan.xml 3. # virsh iface-list --all Name State MAC Address --------------------------------------------------- eno1 active 44:37:e6:95:03:e4 lo active 00:00:00:00:00:00 vlan inactive 4. # virsh iface-dumpxml vlan error: XML error: vlan interface misses the tag attribute Actual results: As the steps4 Expected results: The iface-dumpxml valn should successfully Additional info:
I'm pretty sure that the initscripts code supporting the "vlanNNN" naming convention for vlan devices requires the tag id to be appended to the device name, so what's really needed is a more thorough validation of the requested name.
This is another example of a problem with the workaround "Don't do that". It hasn't been encountered by an actual user, but only in QE testing.