Skip to content

Commit 6ebdab8

Browse files
committed
Minor fixes to new crossconnection commandlets and AzureBgpPeering commandlets
1 parent 684ef3a commit 6ebdab8

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/BgpPeerings/SetAzureBGPPeering.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
namespace Microsoft.WindowsAzure.Commands.ExpressRoute
2222
{
23-
using ServiceManagement.Model;
2423

2524
[Cmdlet(VerbsCommon.Set, "AzureBGPPeering"), OutputType(typeof(AzureBgpPeering))]
2625
public class SetAzureBGPPeeringCommand : ExpressRouteBaseCmdlet

src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
<Compile Include="BgpPeerings\NewAzureBGPPeering.cs" />
123123
<Compile Include="BgpPeerings\RemoveAzureBGPPeering.cs" />
124124
<Compile Include="BgpPeerings\SetAzureBGPPeering.cs" />
125+
<Compile Include="CrossConnections\GetAzureCrossConnection.cs" />
126+
<Compile Include="CrossConnections\NewAzureCrossConnections.cs" />
127+
<Compile Include="CrossConnections\SetAzureCrossConnection.cs" />
125128
<Compile Include="DedicatedCircuitLinkAuthorizationMicrosoftIds\NewAzureDedicatedCircuitLinkAuthorizationMicrosoftIds.cs" />
126129
<Compile Include="DedicatedCircuitLinkAuthorizationMicrosoftIds\RemoveAzureDedicatedCircuitLinkAuthorizationMicrosoftIds.cs" />
127130
<Compile Include="DedicatedCircuitLinkAuthorizations\GetAzureDedicatedCircuitLinkAuthorization.cs" />

src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/CrossConnections/SetAzureCrossConnection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
namespace Microsoft.WindowsAzure.Commands.ExpressRoute
2222
{
23-
using ServiceManagement.Model;
2423

2524
[Cmdlet(VerbsCommon.Set, "AzureCrossConnection"), OutputType(typeof(AzureCrossConnection))]
2625
public class SetAzureCrossConnectionCommand : ExpressRouteBaseCmdlet

src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/ExpressRouteClient.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,16 @@ public AzureBgpPeering GetAzureBGPPeering(string serviceKey, BgpPeeringAccessTyp
5959
return Client.BorderGatewayProtocolPeerings.Get(serviceKey, accessType).BgpPeering;
6060
}
6161

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)
6464
{
6565
var result = Client.BorderGatewayProtocolPeerings.New(serviceKey, accessType, new BorderGatewayProtocolPeeringNewParameters()
6666
{
67+
AdvertisedPublicPrefixes = advertisedPublicPrefixes,
68+
CustomerAutonomousSystemNumber = customerAsn,
6769
PeerAutonomousSystemNumber = peerAsn,
6870
PrimaryPeerSubnet = primaryPeerSubnet,
71+
RoutingRegistryName = routingRegistryName,
6972
SecondaryPeerSubnet = secondaryPeerSubnet,
7073
SharedKey = sharedKey,
7174
VirtualLanId = vlanId
@@ -88,13 +91,15 @@ public bool RemoveAzureBGPPeering(string serviceKey, BgpPeeringAccessType access
8891
}
8992

9093
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)
9396
{
9497
var result = Client.BorderGatewayProtocolPeerings.Update(serviceKey, accessType, new BorderGatewayProtocolPeeringUpdateParameters()
9598
{
99+
CustomerAutonomousSystemNumber = customerAsn,
96100
PeerAutonomousSystemNumber = peerAsn,
97101
PrimaryPeerSubnet = primaryPeerSubnet,
102+
RoutingRegistryName = routingRegistryName,
98103
SecondaryPeerSubnet = secondaryPeerSubnet,
99104
SharedKey = sharedKey,
100105
VirtualLanId = vlanId,

0 commit comments

Comments
 (0)