Revision 8c678130
Added by Tomáš Strachota about 9 years ago
app/controllers/compute_attributes_controller.rb | ||
---|---|---|
if @set.save
|
||
process_success :success_redirect => request.referer || compute_profile_path(@set.compute_profile)
|
||
else
|
||
process_error
|
||
process_error :object => @set
|
||
end
|
||
end
|
||
|
||
... | ... | |
if @set.update_attributes!(params[:compute_attribute])
|
||
process_success :success_redirect => request.referer || compute_profile_path(@set.compute_profile)
|
||
else
|
||
process_error
|
||
process_error :object => @set
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #9480 - multiple NICs integration with compute profiles
From users point of view:
- interfaces setup in compute profiles is back
- interface related compute attrs get merged into host NICs upon compute
profile selection
- NIC overview table displays details in the column "Type"
- UI for direct creation of VMs fixed
- fixed removing interfaces and volumes from compute profiles
From technical point of view:
- NIC overview table is always built by js
- templates for compute resources got more structure (split to partials
"base", "interface", "volume")
- compute resources can provide custom implementation of
'providerSpecificNICInfo' function
(cherry picked from commit 6d05514ad02676067389f44c4ba1d3daf357884b)