Skip to content

Commit

Permalink
Delete connections attribute into passthrough interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
atoy40 committed Nov 28, 2023
1 parent a9e9437 commit 19eb2de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/provider/libvirt_network/virsh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19eb2de

Please sign in to comment.