vagrant-zones 0.1.73 → 0.1.75

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: 1db5834991b56f5766c88f90ff5f227e3dd26bd77d48df861b9983807bf24432
4
- data.tar.gz: 58146a70bed428cd95df64bc3df9bf4766d1090a4003aea6e22fbcfa4255f1a4
3
+ metadata.gz: 9c008c22b5f7efc81dcada78d32f8ec51afc0daec62bc8442a551f75e49c6d22
4
+ data.tar.gz: 68dce9d525af71bd5dba8b728431b697f23c5cfa2cb5c52c72fbacada52d6854
5
5
  SHA512:
6
- metadata.gz: 37f9361e1db8bb106ff23499263f98e182a6b8d2470956000e66e2db77ecca7bdf6f066f4da72a5ee1c27fab41dd84aac61e18ff1b337dcbad1fcd0702ff18e9
7
- data.tar.gz: 430adac41fa0b0ae65a98d8d3156b4da11b552b19d3130bc6246a6f4492314c18fa792ad963fbc88573bb057b2c2616538db7bff50cfd60a60d1575072ab2f61
6
+ metadata.gz: 410f53f551c6975924ccc128dec2929d161560357d46420271c1598c44c68b1b9d700d5cf7280e4c149f47dd7ec8d9829ebfdeec365385c1b7109000a122be63
7
+ data.tar.gz: 1b6ab64d7c9aab1daf1af38dc8a44e10d8bd2758ecac13be6f69ae9c4d0a7e722bee5f904c1f8319b3d2944cef932e76924994e4ec5070ef5675f040082ca950
data/.rubocop.yml CHANGED
@@ -43,7 +43,7 @@ Style/LineEndConcatenation:
43
43
  Layout/LineLength:
44
44
  Description: 'Limit lines to 139 characters.'
45
45
  Enabled: true
46
- Max: 139
46
+ Max: 200
47
47
 
48
48
  Metrics/CyclomaticComplexity:
49
49
  Description: 'Avoid complex methods.'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.75](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.74...v0.1.75) (2023-11-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * increase rubocop linelength limit ([653a94f](https://github.com/STARTcloud/vagrant-zones/commit/653a94fd85efe5e2f850fdf7a76e0867be87f96b))
9
+
10
+ ## [0.1.74](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.73...v0.1.74) (2023-11-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * on-deman vnics ([80c8a42](https://github.com/STARTcloud/vagrant-zones/commit/80c8a429ed9a8e3ad624b3f52fc8b4873803a417))
16
+ * rubocop lint adjustments ([fb22b4f](https://github.com/STARTcloud/vagrant-zones/commit/fb22b4f7fb80b3eb76aa351e67b18f3b4271cf43))
17
+ * ruby lint syntax, doesn't like not ([eebf699](https://github.com/STARTcloud/vagrant-zones/commit/eebf6992cbae1e372cf3d859c0ee039691a0be92))
18
+
3
19
  ## [0.1.73](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.72...v0.1.73) (2023-08-19)
4
20
 
5
21
 
@@ -322,7 +322,7 @@ module VagrantPlugins
322
322
  when 'public_network'
323
323
  zonenicdel(uii, opts) if state == 'delete'
324
324
  zonecfgnicconfig(uii, opts) if state == 'config'
325
- zoneniccreate(uii, opts) if state == 'create'
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
328
  zonenicdel(uii, opts) if state == 'delete'
@@ -332,7 +332,7 @@ module VagrantPlugins
332
332
  etherstubdelete(uii, opts) if state == 'delete'
333
333
  natnicconfig(uii, opts) if state == 'config'
334
334
  etherstub = etherstubcreate(uii, opts) if state == 'create'
335
- zonenatniccreate(uii, opts, etherstub) if state == 'create'
335
+ zonenatniccreate(uii, opts, etherstub) if state == 'create' && !config.on_demand_vnics
336
336
  etherstubcreatehvnic(uii, opts, etherstub) if state == 'create'
337
337
  zonenatforward(uii, opts) if state == 'create'
338
338
  zonenatentries(uii, opts) if state == 'create'
@@ -1062,9 +1062,19 @@ module VagrantPlugins
1062
1062
  shrtstr2 = %(add property (name=ips,value="#{allowed_address}"); add property (name=primary,value="true"); end;)
1063
1063
  execute(false, %(#{strt}set global-nic=auto; #{shrtstr1} #{shrtstr2}"))
1064
1064
  when 'bhyve'
1065
- execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) unless cie
1066
- execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1067
- execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) if cie && !aa
1065
+ if config.on_demand_vnics && opts[:vlan].nil?
1066
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set global-nic=#{opts[:bridge]}; end;")) unless cie
1067
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set global-nic=#{opts[:bridge]}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1068
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set global-nic=#{opts[:bridge]}; end;")) if cie && !aa
1069
+ elsif config.on_demand_vnics && !opts[:vlan].nil?
1070
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set vlan-id=#{opts[:vlan]}; set global-nic=#{opts[:bridge]}; end;")) unless cie
1071
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set vlan-id=#{opts[:vlan]}; set global-nic=#{opts[:bridge]}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1072
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set vlan-id=#{opts[:vlan]}; set global-nic=#{opts[:bridge]}; end;")) if cie && !aa
1073
+ elsif !config.on_demand_vnics
1074
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) unless cie
1075
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1076
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) if cie && !aa
1077
+ end
1068
1078
  end
1069
1079
  end
1070
1080
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.73'
5
+ VERSION = '0.1.75'
6
6
  NAME = 'vagrant-zones'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.73
4
+ version: 0.1.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-19 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n