@@ -59,13 +59,16 @@ public AzureBgpPeering GetAzureBGPPeering(string serviceKey, BgpPeeringAccessTyp
59
59
return Client . BorderGatewayProtocolPeerings . Get ( serviceKey , accessType ) . BgpPeering ;
60
60
}
61
61
62
- public AzureBgpPeering NewAzureBGPPeering ( string serviceKey , UInt32 peerAsn , string primaryPeerSubnet ,
63
- string secondaryPeerSubnet , UInt32 vlanId , BgpPeeringAccessType accessType , string sharedKey = null )
62
+ public AzureBgpPeering NewAzureBGPPeering ( string serviceKey , string advertisedPublicPrefixes , UInt32 customerAsn , UInt32 peerAsn , string primaryPeerSubnet ,
63
+ string routingRegistryName , string secondaryPeerSubnet , UInt32 vlanId , BgpPeeringAccessType accessType , string sharedKey = null )
64
64
{
65
65
var result = Client . BorderGatewayProtocolPeerings . New ( serviceKey , accessType , new BorderGatewayProtocolPeeringNewParameters ( )
66
66
{
67
+ AdvertisedPublicPrefixes = advertisedPublicPrefixes ,
68
+ CustomerAutonomousSystemNumber = customerAsn ,
67
69
PeerAutonomousSystemNumber = peerAsn ,
68
70
PrimaryPeerSubnet = primaryPeerSubnet ,
71
+ RoutingRegistryName = routingRegistryName ,
69
72
SecondaryPeerSubnet = secondaryPeerSubnet ,
70
73
SharedKey = sharedKey ,
71
74
VirtualLanId = vlanId
@@ -88,13 +91,15 @@ public bool RemoveAzureBGPPeering(string serviceKey, BgpPeeringAccessType access
88
91
}
89
92
90
93
public AzureBgpPeering UpdateAzureBGPPeering ( string serviceKey ,
91
- BgpPeeringAccessType accessType , UInt32 peerAsn , string primaryPeerSubnet ,
92
- string secondaryPeerSubnet , UInt32 vlanId , string sharedKey )
94
+ BgpPeeringAccessType accessType , UInt32 customerAsn , UInt32 peerAsn , string primaryPeerSubnet ,
95
+ string routingRegistryName , string secondaryPeerSubnet , UInt32 vlanId , string sharedKey )
93
96
{
94
97
var result = Client . BorderGatewayProtocolPeerings . Update ( serviceKey , accessType , new BorderGatewayProtocolPeeringUpdateParameters ( )
95
98
{
99
+ CustomerAutonomousSystemNumber = customerAsn ,
96
100
PeerAutonomousSystemNumber = peerAsn ,
97
101
PrimaryPeerSubnet = primaryPeerSubnet ,
102
+ RoutingRegistryName = routingRegistryName ,
98
103
SecondaryPeerSubnet = secondaryPeerSubnet ,
99
104
SharedKey = sharedKey ,
100
105
VirtualLanId = vlanId ,
0 commit comments