-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
New module for azure virtual network gateway #44411
New module for azure virtual network gateway #44411
Conversation
WIP |
The test
The test
The test
|
@Madhura-CSI Thanks for the contribution, Could you help confirm the PR ready for review or not? if yes, I will push to review! Thanks! |
@Madhura-CSI Thanks for the contribution. Could you help finished this PR change? when you finished, I will push to review. Thanks! |
@Madhura-CSI Thanks for your contribution, Are you still here?Could you help finish the PR changed? if you finished, I will push to review? Thanks! |
Yes @Fred-sun , I am working on this PR. Will need few more days to finish the stuff. I will update here once this is ready for review. |
@Madhura-CSI Thanks for your update, When you finished changed, I will test,. Thanks! |
kindly ping |
1 similar comment
kindly ping |
@Madhura-CSI I would like to add a few things and also integration tests and merge this pr. |
Sure @zikalino . Please go ahead and make the necessary changes as per your requirement. |
@Madhura-CSI great! :-) could you add me as a collaborator to your fork? |
@zikalino One problem I see here is: I think we need to add write access at repository/org level and not at the pull-request level. Can't really do that as of now. Do you see any probable alternative to this? I would be glad to assist. |
@Madhura-CSI ok then. no problem. I will just fork your fork and create PR on the top of your branch. |
@zikalino sure, thanks! |
if not self.ip_configurations: | ||
self.fail('Parameter error: ip_configurations required when creating a vpn gateway') | ||
subnet = self.network_models.SubResource( | ||
'/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/virtualNetworks/{2}/subnets/GatewaySubnet'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Madhura-CSI i have just started working on this pr, and I have a quick question.
why is GatewaySubned hardcoded here. shouldnt' we refer any subnet?
any special reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zikalino, 'GatewaySubnet' < this name is mandatory for the subnet where we deploy the virtual network gateway virtual machines. AFAIK, we cannot change this name. If we ever do that, network gateway creation will fail at the end. Please confirm this behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Madhura-CSI thanks! I will create PR to your fork soon :-)
@Madhura-CSI Are you still here? Could you give a feedback for zikalino's comments? Thanks! |
@Fred-sun replied to the code review comment above. Please check. |
@Madhura-CSI Thanks for your update. |
@Madhura-CSI I have created a pr to your fork some time ago. could you take a look and merge it? |
sure @zikalino . I will update this in a day or two and will let you know. |
@Madhura-CSI could you try to merge changes today? the freeze is coming :-) |
@Madhura-CSI this PR contains the following merge commits: Please rebase your branch to remove these commits. |
@Madhura-CSI This PR contains |
3ec43c2
to
980e67f
Compare
@zikalino , sorry for the delay. I have now merged your branch with this one. Please review and proceed with upstream merge if everything looks good to you. |
@brusMX @caohai @devigned @gustavomcarmo @haroldwongms @iphilpot @julienstroheker @lmazuel @obsoleted @sozercan @techknowlogick @trstringer @tstringer @xscript @yaweiw @yuwzho As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
@Madhura-CSI Hello. Thanks for this great PR. Recently, we met a small issue, I just wonder, could you share your design purpose for the
Based on the current implementation, it seems that this option is not used in the code now. I checked the sdk, the param of the same name is constructed by the information in the virtual network. ansible/lib/ansible/modules/cloud/azure/azure_rm_virtualnetworkgateway.py Lines 313 to 317 in a3c3fd9
I think there should be some original reason for you to create this option. we can discuss about it and continue improving this module after our discussion. |
SUMMARY
New module for azure virtual network gateway
ISSUE TYPE
COMPONENT NAME
azure_rm_virtualnetworkgateway
ANSIBLE VERSION
ADDITIONAL INFORMATION
Currently we don't have any existing module to create/update/delete virtual network gateway(VPN gateway) in azure cloud. Hence, I would like to contribute this module to community.
Sample module call is as follows:
By default module waits for VPN gateway to be created.(using poller)