Tests/Integration/MSFT_NetIPInterface.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
configuration MSFT_NetIPInterface_Config_Enabled {
    Import-DscResource -ModuleName NetworkingDsc

    Node localhost {
        NetIPInterface Integration_Test
        {
            InterfaceAlias                  = $Node.InterfaceAlias
            AddressFamily                   = $Node.AddressFamily
            AdvertiseDefaultRoute           = $Node.AdvertiseDefaultRoute
            AutomaticMetric                 = $Node.AutomaticMetric
            Dhcp                            = $Node.Dhcp
            DirectedMacWolPattern           = $Node.DirectedMacWolPattern
            EcnMarking                      = $Node.EcnMarking
            ForceArpNdWolPattern            = $Node.ForceArpNdWolPattern
            Forwarding                      = $Node.Forwarding
            IgnoreDefaultRoutes             = $Node.IgnoreDefaultRoutes
            ManagedAddressConfiguration     = $Node.ManagedAddressConfiguration
            NeighborUnreachabilityDetection = $Node.NeighborUnreachabilityDetection
            OtherStatefulConfiguration      = $Node.OtherStatefulConfiguration
            RouterDiscovery                 = $Node.RouterDiscovery
            WeakHostReceive                 = $Node.WeakHostReceive
            WeakHostSend                    = $Node.WeakHostSend
        }
    }
}

configuration MSFT_NetIPInterface_Config_Disabled {
    Import-DscResource -ModuleName NetworkingDsc

    Node localhost {
        NetIPInterface Integration_Test
        {
            InterfaceAlias                  = $Node.InterfaceAlias
            AddressFamily                   = $Node.AddressFamily
            AdvertiseDefaultRoute           = $Node.AdvertiseDefaultRoute
            Dhcp                            = $Node.Dhcp
            DirectedMacWolPattern           = $Node.DirectedMacWolPattern
            EcnMarking                      = $Node.EcnMarking
            ForceArpNdWolPattern            = $Node.ForceArpNdWolPattern
            Forwarding                      = $Node.Forwarding
            IgnoreDefaultRoutes             = $Node.IgnoreDefaultRoutes
            ManagedAddressConfiguration     = $Node.ManagedAddressConfiguration
            OtherStatefulConfiguration      = $Node.OtherStatefulConfiguration
            RouterDiscovery                 = $Node.RouterDiscovery
            WeakHostReceive                 = $Node.WeakHostReceive
            WeakHostSend                    = $Node.WeakHostSend
        }
    }
}