-
Notifications
You must be signed in to change notification settings - Fork 896
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
Add allowed_subnets for scvmm provisioning #16177
Conversation
@bronaghs I went back and forth on that myself and I could still go either way. Currently it will only be shown for SCVMM but it is generic enough to work for any provider if/when they add subnet support which is why I had it here. |
Thats fine by me. We can always move it in the future if we have to. |
da377fb
to
58daee3
Compare
This is no longer a wip, right? |
@miq-bot assign @blomquisg |
@bronaghs I still need to filter the subnets and vlans if the other is selected and update the name for vm_networks to include the parent lan |
fe1bbdf
to
701d36b
Compare
@gmcculloug can you or @lfu help review the changes? The biggest nuisance is that if there is only one subnet it is auto-selected, not sure if I need to change that here or in the UI pr. |
6533cd2
to
165f464
Compare
@agrare Add |
❤️ thanks @gmcculloug |
91b9b7a
to
e09a1d0
Compare
I moved the bulk of the vlan and subnet handling into the scvmm provision_workflow because changing the lan key to uid_ems could break other providers that rely on it being the name. This is moved here ManageIQ/manageiq-providers-scvmm#27 |
@@ -249,6 +249,10 @@ def load_hosts_vlans(hosts, vlans) | |||
end | |||
end | |||
|
|||
def allowed_subnets(_options = {}) |
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.
This method will only be called by a dialog that defines the method name in :values_from
on a dialog field and the subclassed provider workflow would include the method.
If there is common code that all, or most, workflows share it would be alright to include it here, but this not needed.
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.
👍 removed
e09a1d0
to
60c790f
Compare
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.
We chopped plenty out of this PR, don't want to push my luck. 👍
What happen to |
Ah good catch @lfu I mistakenly dropped that commit |
@agrare we're still waiting on ManageIQ/manageiq-providers-scvmm#27 ? |
@blomquisg correct, it was blocked by ManageIQ/manageiq-providers-scvmm#29 which was just merged. |
05cd419
to
240e63e
Compare
240e63e
to
f5f85aa
Compare
Checked commit agrare@f5f85aa with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
@gmcculloug @blomquisg all dependent PRs have been merged can you take a look? |
Allow subnet selection for SCVMM provisioning
Depends on:
Subnets dropdown:
Logical networks and VM Networks: