Permalink
Browse files

Output <source network> XML if specified in the interface spec

  • Loading branch information...
1 parent 3510a43 commit 80e5e34829795ce1097c27d4205e9e69ee32245e @mitchellh committed Dec 14, 2010
Showing with 3 additions and 0 deletions.
  1. +2 −0 CHANGELOG.md
  2. +1 −0 lib/libvirt/spec/device/interface.rb
View
@@ -3,6 +3,8 @@
- `FFI::Libvirt::MissingLibError` is raised if libvirt C library
is not available.
- `Libvirt::Spec::Network` added to parse network interfaces.
+ - Interface device XML properly outputs `<source>` tag if `source_network`
+ is specified.
## 0.2.0 (December 7, 2010)
@@ -37,6 +37,7 @@ def to_xml(xml=Nokogiri::XML::Builder.new)
xml.interface(:type => type) do |i|
i.mac(:address => mac_address) if mac_address
i.model(:type => model_type) if model_type
+ i.source(:network => source_network) if source_network
end
xml.to_xml

0 comments on commit 80e5e34

Please sign in to comment.