Tests/Integration/MSFT_NetworkTeamInterface.config.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

configuration MSFT_NetworkTeamInterface_Config
{
    Import-DSCResource -ModuleName NetworkingDsc

    node localhost
    {
        NetworkTeam HostTeam
        {
            Name                   = $Node.TeamName
            TeamingMode            = $Node.TeamingMode
            LoadBalancingAlgorithm = $Node.LoadBalancingAlgorithm
            TeamMembers            = $Node.Members
            Ensure                 = 'Present'
        }

        NetworkTeamInterface LbfoInterface
        {
            Name      = $Node.InterfaceName
            TeamName  = $Node.TeamName
            VlanID    = $Node.VlanId
            Ensure    = $Node.Ensure
            DependsOn = 'NetworkTeam]HostTeam'
        }
    }
}