Skip to content

Commit

Permalink
lib/vagrant-libvirt/templates/private_network.xml.erb: always specify…
Browse files Browse the repository at this point in the history
… DHCP range with a closing </range>, to allow adding @network_dhcp_bootp_file or @network_dhcp_default_lease_time in between
  • Loading branch information
johanneskastl committed Feb 4, 2024
1 parent 9306375 commit 4c25b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-libvirt/templates/private_network.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<% end %>
<% if @network_dhcp_enabled %>
<dhcp>
<range start="<%= @network_range_start %>" end="<%= @network_range_stop %>" />
<range start="<%= @network_range_start %>" end="<%= @network_range_stop %>">
<% if @network_dhcp_bootp_file %>
<% if @network_dhcp_bootp_server %>
<bootp file="<%= @network_dhcp_bootp_file %>" server="<%= @network_dhcp_bootp_server %>" />
Expand All @@ -35,8 +35,8 @@
<% end %>
<% if @network_dhcp_default_lease_time %>
<lease expiry='@network_dhcp_default_lease_time' unit='hours'/>
</range>
<% end %>
</range>
</dhcp>
<% end %>
</ip>
Expand Down

0 comments on commit 4c25b52

Please sign in to comment.