-
Notifications
You must be signed in to change notification settings - Fork 897
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
Adding the option to set default vlan #16504
Conversation
@AlonaKaplan I assume you are doing this to override in a provider. Is there a PR in a separate repo that relies on this change that can be linked here. |
needed by ManageIQ/manageiq-providers-ovirt#150 |
@AlonaKaplan can you add a description of what this change is going to do? Are you trying to add a |
@agrare Exactly. If nothing else is specified, which means, keep the template vnics, we be chosen. |
@agrare can this PR be approved/merged? |
@AlonaKaplan can you add a description of what you're trying to do and some background in the PR description instead of a comment? |
@agrare updated the PR description. |
@gmcculloug could we just make the redhat provision dialog default to |
@agrare what is blocking this PR from being merged? @gmcculloug do you have an answer to Adam's questions? |
Just that this seems like a weird way to set a default value in a provision dialog. If there isn't a better way to do this then maybe |
@agrare I would hope that setting a default value on the field in the dialog yaml file would work, but would need to be tested since the logic here is trying to set the default based on the source VM might be messing with the normal default logic. If that does not work I do like the idea of using |
Checked commit AlonaKaplan@f997fd5 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@agrare @gmcculloug the code was updated per your request. |
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.
Looks much better! I'll leave this up to @gmcculloug though as I'm not as familiar with the miq_request_workflow
@gmcculloug can you please review? |
@AlonaKaplan Agreed that this is a much nicer solution. I think you also want to apply the changes to the |
Since the redhat 'provision_workfolw' automatically set the default 'vlan', there is no need for the 'vlan' field to be required.
@miq-bot add_label gaprindashvili/yes |
Adding the option to set default vlan (cherry picked from commit 30631c2) https://bugzilla.redhat.com/show_bug.cgi?id=1533499
Gaprindashvili backport details:
|
Adding the option to set default vlan
This change is needed by ManageIQ/manageiq-providers-ovirt#150.
PR ManageIQ/manageiq-providers-ovirt#150 is automatically setting a default 'vlan' on a vm provision. It is done by overriding 'miq_provison_workflow.set_default_vlan' method, introduced in this PR.
Since a default vlan is set, there is no need for the 'vlan' field to be required.
Fixes https://bugzilla.redhat.com/1449157