Share via


ArmPeeringModelFactory.PeeringBgpSession Method

Definition

Initializes a new instance of PeeringBgpSession.

public static Azure.ResourceManager.Peering.Models.PeeringBgpSession PeeringBgpSession (string sessionPrefixV4 = default, string sessionPrefixV6 = default, System.Net.IPAddress microsoftSessionIPv4Address = default, System.Net.IPAddress microsoftSessionIPv6Address = default, System.Net.IPAddress peerSessionIPv4Address = default, System.Net.IPAddress peerSessionIPv6Address = default, Azure.ResourceManager.Peering.Models.PeeringSessionStateV4? sessionStateV4 = default, Azure.ResourceManager.Peering.Models.PeeringSessionStateV6? sessionStateV6 = default, int? maxPrefixesAdvertisedV4 = default, int? maxPrefixesAdvertisedV6 = default, string md5AuthenticationKey = default);
static member PeeringBgpSession : string * string * System.Net.IPAddress * System.Net.IPAddress * System.Net.IPAddress * System.Net.IPAddress * Nullable<Azure.ResourceManager.Peering.Models.PeeringSessionStateV4> * Nullable<Azure.ResourceManager.Peering.Models.PeeringSessionStateV6> * Nullable<int> * Nullable<int> * string -> Azure.ResourceManager.Peering.Models.PeeringBgpSession
Public Shared Function PeeringBgpSession (Optional sessionPrefixV4 As String = Nothing, Optional sessionPrefixV6 As String = Nothing, Optional microsoftSessionIPv4Address As IPAddress = Nothing, Optional microsoftSessionIPv6Address As IPAddress = Nothing, Optional peerSessionIPv4Address As IPAddress = Nothing, Optional peerSessionIPv6Address As IPAddress = Nothing, Optional sessionStateV4 As Nullable(Of PeeringSessionStateV4) = Nothing, Optional sessionStateV6 As Nullable(Of PeeringSessionStateV6) = Nothing, Optional maxPrefixesAdvertisedV4 As Nullable(Of Integer) = Nothing, Optional maxPrefixesAdvertisedV6 As Nullable(Of Integer) = Nothing, Optional md5AuthenticationKey As String = Nothing) As PeeringBgpSession

Parameters

sessionPrefixV4
String

The IPv4 prefix that contains both ends' IPv4 addresses.

sessionPrefixV6
String

The IPv6 prefix that contains both ends' IPv6 addresses.

microsoftSessionIPv4Address
IPAddress

The IPv4 session address on Microsoft's end.

microsoftSessionIPv6Address
IPAddress

The IPv6 session address on Microsoft's end.

peerSessionIPv4Address
IPAddress

The IPv4 session address on peer's end.

peerSessionIPv6Address
IPAddress

The IPv6 session address on peer's end.

sessionStateV4
Nullable<PeeringSessionStateV4>

The state of the IPv4 session.

sessionStateV6
Nullable<PeeringSessionStateV6>

The state of the IPv6 session.

maxPrefixesAdvertisedV4
Nullable<Int32>

The maximum number of prefixes advertised over the IPv4 session.

maxPrefixesAdvertisedV6
Nullable<Int32>

The maximum number of prefixes advertised over the IPv6 session.

md5AuthenticationKey
String

The MD5 authentication key of the session.

Returns

A new PeeringBgpSession instance for mocking.

Applies to