Resolve "Failed network element creation leads to the return of false error messages"
Typos in combination with copy paste resulted in the return of faulty
error messages after cleaning up plugins in the addMne
method of
controller/northbound/server/networkelement.go
.
Description
The clean up of plugins after something went wrong while creating a
managed network element, has been moved into a defer
function. So if
an error is thrown and a plugin has already been created and started,
the defer function will stop the plugin and remove the corresponding
files.
Related Issue
Motivation and Context
How Has This Been Tested?
Created network elements within the controller, that failed in the process.
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
-
My code follows the code style of this project. -
My change requires a change to the documentation. -
I have updated the documentation accordingly. -
I have read the CONTRIBUTING document. -
I have added tests to cover my changes. -
All new and existing tests passed.
Merge request reports
Activity
- A deleted user
added componentnucleus goSDN priorityhigh statusassigned typebug labels
assigned to @istmabauc
added 1 commit
- 14aa9039 - Fix: Cleanup of plugins after failed mne creation returned faulty errors
requested review from @neil.schark and @hda11249
enabled an automatic merge when the pipeline for e8875ae2 succeeds
- A deleted user
merged
mentioned in commit f06a4deb
- A deleted user
added statuscompleted label and removed statusassigned label