Sha256: f6417482b6822470065d5bf949a283ee71a3dda4f65d80b7f7b215dbcb922986

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

<interface type='<%= @type %>'<% if @trust_guest_rx_filters %> trustGuestRxFilters='yes'<% end %>>
  <alias name='ua-net-<%= @iface_number %>'/>
  <%- if @mac %>
  <mac address='<%= @mac %>'/>
  <%- end %>
  <%- if @type == 'direct'%>
  <source dev='<%= @device %>' mode='<%= @mode %>'/>
  <%- elsif !@portgroup.nil? %>
  <source network='<%=@network_name%>' portgroup='<%=@portgroup%>'/>
  <%- else %>
  <source bridge='<%=@device%>'/>
  <%- end %>
  <%- unless @device_name.nil? %>
  <target dev='<%= @device_name %>'/>
  <%- end %>
  <model type='<%=@model_type%>'/>
  <%- if @driver_name and @driver_queues %>
    <driver <% if @driver_iommu %> iommu="on" <% end %> name='<%=@driver_name%>' queues='<%=@driver_queues%>'/>
  <%- elsif @driver_queues %>
    <driver <% if @driver_iommu %> iommu="on" <% end %> queues='<%=@driver_queues%>'/>
  <%- elsif @driver_name %>
    <driver <% if @driver_iommu %> iommu="on" <% end %> name='<%=@driver_name%>'/>
  <%- elsif @driver_iommu %>
    <driver iommu='on' />
  <%- end %>
  <% if @mtu %>
  <mtu size="<%= @mtu %>" />
  <% end %>
  <%- if @ovs %>
  <virtualport type='openvswitch'>
    <%- if @ovs_interfaceid %>
      <parameters interfaceid='<%=@ovs_interfaceid%>'/>
    <%- end %>
  </virtualport>
  <%- end %>
  <%- if @pci_bus and @pci_slot %>
  <address type='pci' bus='<%=@pci_bus%>' slot='<%=@pci_slot%>' />
  <%- end %>
</interface>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-libvirt-0.12.2 lib/vagrant-libvirt/templates/public_interface.xml.erb
vagrant-libvirt-0.12.1 lib/vagrant-libvirt/templates/public_interface.xml.erb
vagrant-libvirt-0.12.0 lib/vagrant-libvirt/templates/public_interface.xml.erb