Skip to content

1. Added new new param:TunnelConnectionStatus in output object:VirtualNetworkGatewayConnection and 2. Added new optional input param:gatewayVip in ResetGateway API. #3170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 9, 2016

Conversation

Nilambari
Copy link
Member

This PR contains 2 changes :-

  • Added new param :- TunnelConnectionStatus in output Connection
    object to show per tunnel connection health status. It is used in comment let:- Get-AzureRmVirtualNetworkGatewayConnection
  • Added optional input param:- gatewayVip to pass gateway vip for ResetGateway API [command let:- Reset-AzureRmVirtualNetworkGateway ]in case of Active
    -Active feature enabled gateways.
  • Updated helper file.

…lNetworkGatewayConnection and 2. Added new optional input param:gatewayVip in ResetGateway API.
@Nilambari
Copy link
Member Author

@markcowl Can you help accept this PR? Thanks a lot!

@Nilambari
Copy link
Member Author

Nilambari commented Nov 4, 2016

@@ -44,7 +44,7 @@ public class ResetAzureVirtualNetworkGatewayConnectionSharedKeyCommand : Virtual
ValueFromPipelineByPropertyName = true,
HelpMessage = "The virtual network connection reset shared key length")]
[ValidateNotNullOrEmpty]
public uint KeyLength { get; set; }
public int KeyLength { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

int [](start = 15, length = 3)

Can you clarify why changing it to int helps in this case, because no matter what datatype you end up using, the user cannot provide a key length value more than 4 billion (or whatever the upper limit is)
Unless you support a scenario where a user can provide key length in negative value?

Copy link
Member Author

Choose a reason for hiding this comment

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

As per suggestions in rest api spec, we have made some fixes, this was also part of that. No specific purpose.

Copy link
Contributor

Choose a reason for hiding this comment

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

As we talked offline, please revert this change and update the PR


In reply to: 86872966 [](ancestors = 86872966)

Copy link
Member Author

Choose a reason for hiding this comment

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

Reverted back as per offline discussion,

@@ -41,6 +42,8 @@ public class PSVirtualNetworkGatewayConnection : PSTopLevelResource

public ulong IngressBytesTransferred { get; set; }

public List<PSTunnelConnectionHealth> TunnelConnectionStatus { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any test coverage for this functionality.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updating test to cover this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Mandatory = false,
ValueFromPipeline = true,
HelpMessage = "The gateway vip in order to reset particular gateway instance (e.g. in case of Active-Active feature enabled gateways.) By default, gateway primary instance will be reset if no value is passed.")]
public string GatewayVip { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any test coverage for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updating test to cover this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

{
using System;

public class PSTunnelConnectionHealth
Copy link
Contributor

Choose a reason for hiding this comment

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

PSTunnelConnectionHealth [](start = 17, length = 24)

please follow the comments in the respective RP directory and submit your changelog
src/ResourceManager//ChangeLog.md

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@@ -19,10 +19,9 @@
-->
## Current Release

## Version 3.1.0
Copy link
Member

Choose a reason for hiding this comment

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

@Nilambari Hey Nilambari, please keep the information corresponding to release 3.1.0 in the change log so that customers looking at the change log can follow changes across multiple releases. Also, please move the information under "Version 3.2.0" to under "Current Release". At the end of the release, we run a script that will move the contents from under "Current Release" and put them under a newly created release section (in this case, 3.2.0).

@Nilambari
Copy link
Member Author

@Nilambari
Copy link
Member Author

Can you Please help accept the PR? Thanks!

@shahabhijeet shahabhijeet merged commit afa6a61 into Azure:release-3.2.0 Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants