Udostępnij za pośrednictwem


ArmNetworkModelFactory.EffectiveRoute Method

Definition

Initializes a new instance of EffectiveRoute.

public static Azure.ResourceManager.Network.Models.EffectiveRoute EffectiveRoute (string name = default, bool? disableBgpRoutePropagation = default, Azure.ResourceManager.Network.Models.EffectiveRouteSource? source = default, Azure.ResourceManager.Network.Models.EffectiveRouteState? state = default, System.Collections.Generic.IEnumerable<string> addressPrefix = default, System.Collections.Generic.IEnumerable<string> nextHopIPAddress = default, Azure.ResourceManager.Network.Models.RouteNextHopType? nextHopType = default);
static member EffectiveRoute : string * Nullable<bool> * Nullable<Azure.ResourceManager.Network.Models.EffectiveRouteSource> * Nullable<Azure.ResourceManager.Network.Models.EffectiveRouteState> * seq<string> * seq<string> * Nullable<Azure.ResourceManager.Network.Models.RouteNextHopType> -> Azure.ResourceManager.Network.Models.EffectiveRoute
Public Shared Function EffectiveRoute (Optional name As String = Nothing, Optional disableBgpRoutePropagation As Nullable(Of Boolean) = Nothing, Optional source As Nullable(Of EffectiveRouteSource) = Nothing, Optional state As Nullable(Of EffectiveRouteState) = Nothing, Optional addressPrefix As IEnumerable(Of String) = Nothing, Optional nextHopIPAddress As IEnumerable(Of String) = Nothing, Optional nextHopType As Nullable(Of RouteNextHopType) = Nothing) As EffectiveRoute

Parameters

name
String

The name of the user defined route. This is optional.

disableBgpRoutePropagation
Nullable<Boolean>

If true, on-premises routes are not propagated to the network interfaces in the subnet.

source
Nullable<EffectiveRouteSource>

Who created the route.

state
Nullable<EffectiveRouteState>

The value of effective route.

addressPrefix
IEnumerable<String>

The address prefixes of the effective routes in CIDR notation.

nextHopIPAddress
IEnumerable<String>

The IP address of the next hop of the effective route.

nextHopType
Nullable<RouteNextHopType>

The type of Azure hop the packet should be sent to.

Returns

A new EffectiveRoute instance for mocking.

Applies to