diff --git a/lib/puppet/provider/libvirt_network/virsh.rb b/lib/puppet/provider/libvirt_network/virsh.rb index 41a298c..0c044ba 100644 --- a/lib/puppet/provider/libvirt_network/virsh.rb +++ b/lib/puppet/provider/libvirt_network/virsh.rb @@ -93,6 +93,9 @@ def content xml.root.elements.delete('//mac') # remove the connections xml.root.attributes.delete('connections') + xml.root.elements.each("//forward[@mode='passthrough']/interface") do |el| + el.attributes.delete('connections'); + end formatter = REXML::Formatters::Pretty.new(2) formatter.compact = true output = ''.dup