Resolve "Failed network element creation leads to the return of false error messages"
Merged
requested to merge 330-failed-network-element-creation-leads-to-the-return-of-false-error-messages into master
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
.
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.
Created network elements within the controller, that failed in the process.