Azure Networking: Updated saDataSizeKilobytes validation for vpn gateway connection #14897
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Making the property of IPsec protocol, SALifeTimeSeconds disabled by setting it to zero.
SALifeTimeSeconds is the property of IPsec protocol which is used to reinitialize the Security association (SA) when data is sent over the connection for data security purpose. When there is high throughput SALifeTimeSeconds property of IPsec protocol can become useless.
In the current implementation SALifeTimeSeconds can be passed in between 1024 to 2147483647.
About the current change: when SALifeTimeSeconds value passed 0 it should disable the SALifeTimeSeconds property of IPsec protocol.
I updated the validation and added unit tests in azure PowerShell repository.
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added