Resolve "Plugin is created and persisted in the database even if the creation of a network element failed"
Merged
requested to merge 319-plugin-is-created-and-persisted-in-the-database-even-if-the-creation-of-a-network-element-failed into master
Compare changes
- Malte Bauch authored
The initialNetworkElementRootPathRequest() method has been added to reduce complexity within the addMne() method.
@@ -723,49 +723,67 @@ func (n *NetworkElementServer) addMne(ctx context.Context, name string, opt *tpb
@@ -723,49 +723,67 @@ func (n *NetworkElementServer) addMne(ctx context.Context, name string, opt *tpb
mne, err := nucleus.NewNetworkElement(name, networkElementID, opt, pndID, plugin, conflict.Metadata{ResourceVersion: 0})
func (n *NetworkElementServer) SetChangeList(ctx context.Context, request *mnepb.SetChangeListRequest) (*mnepb.SetChangeListResponse, error) {