Skip to content

Ipsec Policies for Virtual Network Gateway Connection#2943

Merged
cormacpayne merged 11 commits into
Azure:network-changesfrom
henry416:AutoRest
Mar 23, 2017
Merged

Ipsec Policies for Virtual Network Gateway Connection#2943
cormacpayne merged 11 commits into
Azure:network-changesfrom
henry416:AutoRest

Conversation

@henry416
Copy link
Copy Markdown
Member

@henry416 henry416 commented Mar 16, 2017

Description

REST spec here: Azure/azure-rest-api-specs#956

  • Added IPsec Policies support to virtual network gateway connection model
  • Added passing tests for IPsec Policies connections
  • new api-version of Network swagger added (all changes but in 2017-03-01 version, copied over from previous rest spec version)

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as a link to the swagger spec, used to generate the code.
  • The project.json and AssemblyInfo.cs files have been updated with the new version of the SDK.

Added virtual network gateway connection tests for ipsec policies

Added VirtualNetworkGatewayConnection Ipsec Policies Test record

Test Cases updated to use field names

Connection Ipsec Policies Test session data

Ipsec policies Test added for virtual network gateway connections
@azuresdkci
Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@msftclas
Copy link
Copy Markdown

@henry416,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@henry416 henry416 changed the title Ipsec Policies for Ipsec Policies for Virtual Network Gateway Connection Mar 16, 2017
@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne Hi, is this waiting on the spec to be merged for the CR to proceed?

@cormacpayne
Copy link
Copy Markdown
Member

@henry416 Hey Henry, we are waiting for the spec to be merged in order to continue with the review. This ensures that all changes with the generated code are finalized, and we don't have to keep updating the review based on changes to the rest-api-specs PR

@cormacpayne
Copy link
Copy Markdown
Member

@azuresdkci add to whitelist

@henry416
Copy link
Copy Markdown
Member Author

henry416 commented Mar 17, 2017

@cormacpayne OK. However can you clarify if what I have submitted for test records is sufficient?

@cormacpayne
Copy link
Copy Markdown
Member

@henry416 test coverage looks good to me 👍

@cormacpayne
Copy link
Copy Markdown
Member

@azuresdkci test this please

@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne Is the current checked-in build stable?

@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne rest specs have been merged, this PR can proceed

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne left a comment

Choose a reason for hiding this comment

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

@henry416 Hey Henry, just a few comments that need clarification


[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.2.0.0")]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@henry416 you can set AssemblyVersion to 9.0.0 and keep AssemblyFileVersion at 9.2.0.

AssemblyFileVersion should always match the version found in project.json, and AssemblyVersion shares only the major version of the AssemblyFileVersion

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed.

/// <param name="routeFilter">The reference of the RouteFilter
/// resource.</param>
public ExpressRouteCircuitPeering(string id = default(string), string peeringType = default(string), string state = default(string), int? azureASN = default(int?), int? peerASN = default(int?), string primaryPeerAddressPrefix = default(string), string secondaryPeerAddressPrefix = default(string), string primaryAzurePort = default(string), string secondaryAzurePort = default(string), string sharedKey = default(string), int? vlanId = default(int?), ExpressRouteCircuitPeeringConfig microsoftPeeringConfig = default(ExpressRouteCircuitPeeringConfig), ExpressRouteCircuitStats stats = default(ExpressRouteCircuitStats), string provisioningState = default(string), string gatewayManagerEtag = default(string), string lastModifiedBy = default(string), string name = default(string), string etag = default(string), RouteFilter routeFilter = default(RouteFilter))
public ExpressRouteCircuitPeering(string id = default(string), string peeringType = default(string), string state = default(string), int? azureASN = default(int?), int? peerASN = default(int?), string primaryPeerAddressPrefix = default(string), string secondaryPeerAddressPrefix = default(string), string primaryAzurePort = default(string), string secondaryAzurePort = default(string), string sharedKey = default(string), int? vlanId = default(int?), ExpressRouteCircuitPeeringConfig microsoftPeeringConfig = default(ExpressRouteCircuitPeeringConfig), ExpressRouteCircuitStats stats = default(ExpressRouteCircuitStats), string provisioningState = default(string), string gatewayManagerEtag = default(string), string lastModifiedBy = default(string), RouteFilter routeFilter = default(RouteFilter), string name = default(string), string etag = default(string))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@henry416 I thought the position of RouteFilter in the constructor was fixed in a previous swagger spec PR (so that it would be the last parameter). Do you know if this change was reverted?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I never touched the expressroute specs - I will investigate this

/// <param name="etag">Gets a unique read-only string that changes
/// whenever the resource is updated.</param>
public VirtualNetworkGateway(IList<VirtualNetworkGatewayIPConfiguration> ipConfigurations, string gatewayType, string vpnType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), bool? enableBgp = default(bool?), bool? activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string))
public VirtualNetworkGateway(IList<VirtualNetworkGatewayIPConfiguration> ipConfigurations, string gatewayType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string vpnType = default(string), bool? enableBgp = default(bool?), bool? activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@henry416 similar comment to that of RouteFilter. Was this position changed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@Nilambari has a change in the parameter waiting for PR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne I have addressed the issues with the help of the teams that own those components + fixed the tests

@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne Is there any other outstanding issue with this PR?

@cormacpayne
Copy link
Copy Markdown
Member

@henry416 did you get the email I sent? There are multiple Network PRs that have been opened in this repository and they need to be coordinated so we are not publishing multiple packages in a short time frame.

@cormacpayne cormacpayne changed the base branch from AutoRest to network-changes March 22, 2017 00:45
@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne can the merge proceed?

@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne Is this still in review? Once this is done we can do a double merge (my changes into branch and then branch into AutoRest master)

@jobatzil
Copy link
Copy Markdown
Contributor

@henry416 Hey henry, could you maybe remove the files from your PR with no changes but a different EOF?

@henry416
Copy link
Copy Markdown
Member Author

@jobatzil EOF removed and merge conflict with network-changes branch resolved

@henry416
Copy link
Copy Markdown
Member Author

@cormacpayne I have resolved the merge issues, can this go through now?

@cormacpayne cormacpayne merged commit 97c5852 into Azure:network-changes Mar 23, 2017
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.

5 participants