ArmNetworkModelFactory.BgpPeerStatus Method

Definition

Initializes a new instance of BgpPeerStatus.

public static Azure.ResourceManager.Network.Models.BgpPeerStatus BgpPeerStatus (string localAddress = default, string neighbor = default, long? asn = default, Azure.ResourceManager.Network.Models.BgpPeerState? state = default, TimeSpan? connectedDuration = default, long? routesReceived = default, long? messagesSent = default, long? messagesReceived = default);
static member BgpPeerStatus : string * string * Nullable<int64> * Nullable<Azure.ResourceManager.Network.Models.BgpPeerState> * Nullable<TimeSpan> * Nullable<int64> * Nullable<int64> * Nullable<int64> -> Azure.ResourceManager.Network.Models.BgpPeerStatus
Public Shared Function BgpPeerStatus (Optional localAddress As String = Nothing, Optional neighbor As String = Nothing, Optional asn As Nullable(Of Long) = Nothing, Optional state As Nullable(Of BgpPeerState) = Nothing, Optional connectedDuration As Nullable(Of TimeSpan) = Nothing, Optional routesReceived As Nullable(Of Long) = Nothing, Optional messagesSent As Nullable(Of Long) = Nothing, Optional messagesReceived As Nullable(Of Long) = Nothing) As BgpPeerStatus

Parameters

localAddress
String

The virtual network gateway's local address.

neighbor
String

The remote BGP peer.

asn
Nullable<Int64>

The autonomous system number of the remote BGP peer.

state
Nullable<BgpPeerState>

The BGP peer state.

connectedDuration
Nullable<TimeSpan>

For how long the peering has been up.

routesReceived
Nullable<Int64>

The number of routes learned from this peer.

messagesSent
Nullable<Int64>

The number of BGP messages sent.

messagesReceived
Nullable<Int64>

The number of BGP messages received.

Returns

A new BgpPeerStatus instance for mocking.

Applies to