Skip to content
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

azurerm_vpn_site - support new property o365_policy #16820

Merged
merged 4 commits into from
Jun 27, 2022

Conversation

neil-yechenwei
Copy link
Contributor

@neil-yechenwei neil-yechenwei commented May 17, 2022

This PR is to support new property o365_policy.

--- PASS: TestAccVpnSite_basic (301.95s)
--- PASS: TestAccVpnSite_complete (303.11s)
--- PASS: TestAccVpnSite_requiresImport (338.98s)
--- PASS: TestAccVpnSite_o365Policy (423.74s)
--- PASS: TestAccVpnSite_update (578.85s)

image

@github-actions github-actions bot added size/L and removed size/M labels May 17, 2022
Comment on lines 103 to 116
A `o365_policy` block supports the following:

* `breakout_category` - (Optional) A `breakout_category` block as defined above.

---

A `breakout_category` block supports the following:

* `allow_category_enabled` - (Optional) Is allow category controlled? Defaults to `false`.

* `default_category_enabled` - (Optional) Is default category controlled? Defaults to `false`.

* `optimize_category_enabled` - (Optional) Is optimize category controlled? Defaults to `false`.

Copy link
Collaborator

Choose a reason for hiding this comment

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

i think this needs to be reworked as its not very intuitive what is being set.

what does it mean by breakout category? what is allow vs default vs optimise? should it be o365_breakout_policy? or o365_breakout_catagory_policy

allow_controlled = true etc?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@katbyte , I think service team would expand the sub properties of o365_policy to introduce other o365 policies in the future. So suggest keep o365_policy. I updated breakout_category to traffic_category. See more details from https://docs.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-vpn-split-tunnel?view=o365-worldwide.

@neil-yechenwei
Copy link
Contributor Author

@katbyte , thanks for your comments. I've updated code. Please take another look. Thanks in advance.

Comment on lines 109 to 115
A `traffic_category` block supports the following:

* `allow_controlled` - (Optional) Is allow category controlled? Defaults to `false`.

* `default_controlled` - (Optional) Is default category controlled? Defaults to `false`.

* `optimize_controlled` - (Optional) Is optimize category controlled? Defaults to `false`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

i'm still not sure what these values are doing? could we eitehr fixuyp the property names or the descriptions?

Copy link
Contributor Author

@neil-yechenwei neil-yechenwei Jun 10, 2022

Choose a reason for hiding this comment

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

Here is the defintion of Allow/Default/Optimize endpoint.

Here are the ip ranges for office that fall within specific Allow/Optimize/Default categories of traffic. What this tells is essentially what kind of traffic from the branch should go directly to Office and what can flow via Virtual WAN, mostly Optimized traffic needs to be breakout from branch as it is latency sensitive. This would have been ideally integrated with sd-wan vendors so depending on this policy, they can configure the branch cpe devices with right routing for office traffic.

@neil-yechenwei
Copy link
Contributor Author

@katbyte, thanks for your comments. I've updated code. Please take another look. Thanks in advance.

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM 🍔

@katbyte katbyte merged commit 1f2576d into hashicorp:main Jun 27, 2022
katbyte added a commit that referenced this pull request Jun 27, 2022
@github-actions github-actions bot added this to the v3.12.0 milestone Jun 27, 2022
@github-actions
Copy link

github-actions bot commented Jul 1, 2022

This functionality has been released in v3.12.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Aug 1, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants