vagrant-zones 0.1.75 → 0.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c008c22b5f7efc81dcada78d32f8ec51afc0daec62bc8442a551f75e49c6d22
4
- data.tar.gz: 68dce9d525af71bd5dba8b728431b697f23c5cfa2cb5c52c72fbacada52d6854
3
+ metadata.gz: 9da2346975b2b2cc984dc5d4fe58c3a54f55f5d196aa8c17b1506ccf978da963
4
+ data.tar.gz: 3d1464527c46a2a231e9e376f35a1faf89677d0193977ba0bd032748cf463d14
5
5
  SHA512:
6
- metadata.gz: 410f53f551c6975924ccc128dec2929d161560357d46420271c1598c44c68b1b9d700d5cf7280e4c149f47dd7ec8d9829ebfdeec365385c1b7109000a122be63
7
- data.tar.gz: 1b6ab64d7c9aab1daf1af38dc8a44e10d8bd2758ecac13be6f69ae9c4d0a7e722bee5f904c1f8319b3d2944cef932e76924994e4ec5070ef5675f040082ca950
6
+ metadata.gz: 5f86b4ad41d94e179a3a811d05a13e74cb8298ba46dbbea7f495aca4d0e4ae35f47f961ecc748625d7570348bb57ed29d6d12ac76c1af1ce534efde6118af8e6
7
+ data.tar.gz: 9363dc5d71bd463c76ecc02c41badc18b41a5a314850927b3e655b4f0d58e551d15eac7426e1b3887aa37d3a2b2d62f37ad3842cc217bbaed3ba62adbe282625
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.77](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.76...v0.1.77) (2023-11-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * don't delete vnics if on_demand is enabled ([e7d0b8d](https://github.com/STARTcloud/vagrant-zones/commit/e7d0b8d7b6694ee93759e0f45185a54aefc2e91e))
9
+
10
+ ## [0.1.76](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.75...v0.1.76) (2023-11-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * forgot to add to config.rb ([5a98934](https://github.com/STARTcloud/vagrant-zones/commit/5a98934851f78e3ec9f1a1c0580aeb3d50cab66b))
16
+
3
17
  ## [0.1.75](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.74...v0.1.75) (2023-11-27)
4
18
 
5
19
 
@@ -7,7 +7,7 @@ module VagrantPlugins
7
7
  # This is used define the variables for the project
8
8
  class Config < Vagrant.plugin('2', :config)
9
9
  # rubocop:disable Layout/LineLength
10
- attr_accessor :brand, :autoboot, :setup_method, :safe_restart, :allowed_address, :safe_shutdown, :boxshortname, :kernel, :debug, :debug_boot, :private_network, :winalcheck, :winlcheck, :lcheck, :alcheck, :snapshot_script, :diskif, :netif, :cdroms, :disk1path, :disk1size, :cpus, :cpu_configuration, :boot, :complex_cpu_conf, :memory, :vagrant_user, :vagrant_user_private_key_path, :setup_wait, :clean_shutdown_time, :dhcp4, :vagrant_user_pass, :firmware_type, :vm_type, :partition_id, :shared_disk_enabled, :shared_dir, :acpi, :os_type, :console, :consolehost, :consoleport, :console_onboot, :hostbridge, :sshport, :rdpport, :override, :additional_disks, :cloud_init_resolvers, :cloud_init_enabled, :cloud_init_dnsdomain, :cloud_init_password, :cloud_init_sshkey, :cloud_init_conf, :dns, :box, :vagrant_cloud_creator, :winbooted_string, :booted_string, :zunlockbootkey, :zunlockboot, :xhci_enabled, :login_wait
10
+ attr_accessor :brand, :autoboot, :setup_method, :safe_restart, :allowed_address, :safe_shutdown, :boxshortname, :kernel, :debug, :debug_boot, :private_network, :winalcheck, :winlcheck, :lcheck, :alcheck, :snapshot_script, :diskif, :netif, :cdroms, :disk1path, :disk1size, :cpus, :cpu_configuration, :boot, :complex_cpu_conf, :memory, :vagrant_user, :vagrant_user_private_key_path, :setup_wait, :on_demand_vnics, :clean_shutdown_time, :dhcp4, :vagrant_user_pass, :firmware_type, :vm_type, :partition_id, :shared_disk_enabled, :shared_dir, :acpi, :os_type, :console, :consolehost, :consoleport, :console_onboot, :hostbridge, :sshport, :rdpport, :override, :additional_disks, :cloud_init_resolvers, :cloud_init_enabled, :cloud_init_dnsdomain, :cloud_init_password, :cloud_init_sshkey, :cloud_init_conf, :dns, :box, :vagrant_cloud_creator, :winbooted_string, :booted_string, :zunlockbootkey, :zunlockboot, :xhci_enabled, :login_wait
11
11
 
12
12
  # rubocop:enable Layout/LineLength
13
13
 
@@ -49,6 +49,7 @@ module VagrantPlugins
49
49
  @hostbridge = 'i440fx'
50
50
  @acpi = 'on'
51
51
  @setup_wait = 90
52
+ @on_demand_vnics = 'true'
52
53
  @box = UNSET_VALUE
53
54
  @clean_shutdown_time = 300
54
55
  @vmtype = 'production'
@@ -320,12 +320,12 @@ module VagrantPlugins
320
320
  @machine.config.vm.networks.each do |adaptertype, opts|
321
321
  case adaptertype.to_s
322
322
  when 'public_network'
323
- zonenicdel(uii, opts) if state == 'delete'
323
+ zonenicdel(uii, opts) if state == 'delete' && !config.on_demand_vnics
324
324
  zonecfgnicconfig(uii, opts) if state == 'config'
325
325
  zoneniccreate(uii, opts) if state == 'create' && !config.on_demand_vnics
326
326
  zonenicstpzloginsetup(uii, opts, config) if state == 'setup' && config.setup_method == 'zlogin'
327
327
  when 'private_network'
328
- zonenicdel(uii, opts) if state == 'delete'
328
+ zonenicdel(uii, opts) if state == 'delete' && !config.on_demand_vnics
329
329
  zonedhcpentriesrem(uii, opts) if state == 'delete'
330
330
  zonenatclean(uii, opts) if state == 'delete'
331
331
  etherstubdelhvnic(uii, opts) if state == 'delete'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.75'
5
+ VERSION = '0.1.77'
6
6
  NAME = 'vagrant-zones'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.75
4
+ version: 0.1.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert