From b7a9abfc16ad555c2fbdb5a386ad92ff2e83b27d Mon Sep 17 00:00:00 2001 From: John Beredimas Date: Mon, 9 Mar 2015 11:01:19 -0400 Subject: [PATCH] Allow isolated networks --- lib/vagrant-libvirt/templates/private_network.xml.erb | 10 +++++++--- lib/vagrant-libvirt/version.rb | 2 +- vagrant-libvirt.gemspec | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/vagrant-libvirt/templates/private_network.xml.erb b/lib/vagrant-libvirt/templates/private_network.xml.erb index 65ac5f9..e3c8f9a 100644 --- a/lib/vagrant-libvirt/templates/private_network.xml.erb +++ b/lib/vagrant-libvirt/templates/private_network.xml.erb @@ -2,7 +2,7 @@ <%= @network_name %> - <% if @network_forward_mode != 'none' %> + <% if (@network_forward_mode != 'none' && @network_forward_mode != 'isolated') %> <% if @network_forward_device %> <% else %> @@ -10,12 +10,16 @@ <% end %> <% end %> - + <% if @network_forward_mode != 'isolated' %> + + <% end %> <% if @network_dhcp_enabled %> <% end %> - + <% if @network_forward_mode != 'isolated' %> + + <% end %> diff --git a/lib/vagrant-libvirt/version.rb b/lib/vagrant-libvirt/version.rb index b4a637d..26cc284 100644 --- a/lib/vagrant-libvirt/version.rb +++ b/lib/vagrant-libvirt/version.rb @@ -1,5 +1,5 @@ module VagrantPlugins module ProviderLibvirt - VERSION = '0.0.25' + VERSION = '0.0.26' end end diff --git a/vagrant-libvirt.gemspec b/vagrant-libvirt.gemspec index 26a4adb..4cc64a9 100644 --- a/vagrant-libvirt.gemspec +++ b/vagrant-libvirt.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |gem| gem.license = 'MIT' gem.description = %q{libvirt provider for Vagrant.} gem.summary = %q{libvirt provider for Vagrant.} - gem.homepage = 'https://github.com/pradels/vagrant-libvirt' + gem.homepage = 'https://github.com/mperedim/vagrant-libvirt' gem.files = `git ls-files`.split($\) gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }