Skip to content

added global reach flag in New-AzureExpressRouteCircuit cmdlet #6845

Closed
syfarogh wants to merge 5 commits intoAzure:network-august-releasefrom
syfarogh:network-august-release
Closed

added global reach flag in New-AzureExpressRouteCircuit cmdlet #6845
syfarogh wants to merge 5 commits intoAzure:network-august-releasefrom
syfarogh:network-august-release

Conversation

@syfarogh
Copy link
Contributor

@syfarogh syfarogh commented Aug 3, 2018

Description

added global reach flag in New-AzureExpressRouteCircuit cmdlet to toggle Global reach feature on a circuit.

Checklist

Mandatory = false,
ValueFromPipelineByPropertyName = true)]
[ValidateNotNullOrEmpty]
public bool AllowGlobalReach { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boolean parameters are discouraged. You should use a SwitchParameter instead.

[ValidateNotNullOrEmpty]
public bool? AllowClassicOperations { get; set; }

[Parameter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should ensure the new parameter is covered in one of your tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated an existing test to test this flag.

@markcowl
Copy link
Member

markcowl commented Aug 6, 2018

@syfarogh Code complete is today (8/6) Please make requested changes by EOD if you would like this PR in this release.

@syfarogh
Copy link
Contributor Author

syfarogh commented Aug 7, 2018

The test is failing because it requires SDK generated from swagger network-august-release.

Copy link
Member

@markcowl markcowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests failing - need to be re-recorded


# Create the ExpressRouteCircuit
$circuit = New-AzureRmExpressRouteCircuit -Name $circuitName -Location $location -ResourceGroupName $rgname -SkuTier Standard -SkuFamily MeteredData -ServiceProviderName "equinix" -PeeringLocation "Silicon Valley" -BandwidthInMbps 500;
$circuit = New-AzureRmExpressRouteCircuit -Name $circuitName -Location $location -ResourceGroupName $rgname -SkuTier Standard -SkuFamily MeteredData -ServiceProviderName "equinix" -PeeringLocation "Silicon Valley" -BandwidthInMbps 500 -AllowGlobalReach;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you will need to re-record tests for this

@maddieclayton
Copy link
Contributor

@syfarogh Ping

@maddieclayton
Copy link
Contributor

Closing per offline conversation that @syfarogh will open a new PR targeting a different branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments