Udostępnij za pośrednictwem


ArmNetworkModelFactory.PeerRoute Method

Definition

Initializes a new instance of PeerRoute.

public static Azure.ResourceManager.Network.Models.PeerRoute PeerRoute (string localAddress = default, string network = default, string nextHop = default, string sourcePeer = default, string origin = default, string asPath = default, int? weight = default);
static member PeerRoute : string * string * string * string * string * string * Nullable<int> -> Azure.ResourceManager.Network.Models.PeerRoute
Public Shared Function PeerRoute (Optional localAddress As String = Nothing, Optional network As String = Nothing, Optional nextHop As String = Nothing, Optional sourcePeer As String = Nothing, Optional origin As String = Nothing, Optional asPath As String = Nothing, Optional weight As Nullable(Of Integer) = Nothing) As PeerRoute

Parameters

localAddress
String

The peer's local address.

network
String

The route's network prefix.

nextHop
String

The route's next hop.

sourcePeer
String

The peer this route was learned from.

origin
String

The source this route was learned from.

asPath
String

The route's AS path sequence.

weight
Nullable<Int32>

The route's weight.

Returns

A new PeerRoute instance for mocking.

Applies to