Skip to content

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

#330

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.
Edited by Malte Bauch

Merge request reports