VirtualEngine / Lability

Virtual Engine test lab deployment and configuration module
MIT License
282 stars 50 forks source link

Implements VLAN tagging on network adapters #426

Closed lbrauns closed 7 months ago

lbrauns commented 8 months ago

Hi,

this is currently missing the Pester test, I could need some advice on this...

  1. Updates xHyper-V to version 3.18 (current from PSGallery)
  2. Implements the ability to define a network adapter configuration for MSFT_xVMNetworkAdapter
  3. Updates documentation and examples accordingly

This solves issue #188

In the node data you can now define an array of hashtables that hold configuration for adapter, that is connected to the defined switch.

NetAdapterConfiguration = @(
    @{
        VlanId = 1
        SwitchName = 'Default Switch'
        MACAddress = '00-15-5d-ff-ff-01'
    },
    @{
        VlanId = 1
        SwitchName = 'Internal'
        MACAddress = '00-15-5d-ff-ff-02'
    }
)
lbrauns commented 7 months ago

It seems dependencies in DSC are severly broken....

Currently I am struggling with the issue in DscResource.Common: https://github.com/dsccommunity/DscResource.Common/issues/37

Therefore this PR will probably not happen until DSC got it fixed...