support/hyperv.ps1 in kitchen-hyperv-0.1.10 vs support/hyperv.ps1 in kitchen-hyperv-0.1.20

- old
+ new

@@ -111,10 +111,12 @@ [CmdletBinding()] Param ( [parameter(valuefrompipeline)] [object]$NetworkAdapter, [String[]]$IPAddress = @(), + [String[]]$Gateway = @(), + [String[]]$DNSServers = @(), [String[]]$Subnet = @() ) $vm = Get-WmiObject -Namespace 'root\virtualization\v2' -Class 'Msvm_ComputerSystem' | Where-Object { $_.ElementName -eq $NetworkAdapter.VMName @@ -132,9 +134,11 @@ $NetworkSettings = $NetworkSettings + $NetAdapter.GetRelated('Msvm_GuestNetworkAdapterConfiguration') } } $NetworkSettings[0].IPAddresses = $IPAddress + $NetworkSettings[0].DefaultGateways = $Gateway + $NetworkSettings[0].DNSServers = $DNSServers $NetworkSettings[0].Subnets = $Subnet $NetworkSettings[0].ProtocolIFType = 4096 $NetworkSettings[0].DHCPEnabled = $false