Skip to content
Snippets Groups Projects
Commit 53d7a64f authored by Fabian Seidl's avatar Fabian Seidl
Browse files

remove/deal with todos, generate mocks to fit adjustments in mne

parent 562b360b
No related branches found
No related tags found
1 merge request!625Resolve "The mechanism to watch devices during controller start currently only supports watching the same path for each device"
Pipeline #170140 passed
......@@ -20,6 +20,22 @@ type NetworkElement struct {
mock.Mock
}
// GetGnmiSubscriptionPaths provides a mock function with given fields:
func (_m *NetworkElement) GetGnmiSubscriptionPaths() [][]string {
ret := _m.Called()
var r0 [][]string
if rf, ok := ret.Get(0).(func() [][]string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([][]string)
}
}
return r0
}
// GetMetadata provides a mock function with given fields:
func (_m *NetworkElement) GetMetadata() conflict.Metadata {
ret := _m.Called()
......
......@@ -327,7 +327,7 @@ func (c ConfigurationManagementServer) createNetworkElements(sdnConfig *loadedSD
&transportOption,
pndUUID,
plugin,
[][]string{}, // TODO: change here!
inputNetworkElement.GnmiSubscriptionPaths,
conflict.Metadata{ResourceVersion: inputNetworkElement.Metadata.ResourceVersion},
)
if err != nil {
......
......@@ -145,7 +145,6 @@ func (s *NetworkElementService) UpdateModel(networkElementID uuid.UUID, modelAsS
return err
}
// TODO (faseid): check if we want to add the paths with values here instead of empty map!
pubEvent := event.NewUpdateEvent(networkElementID)
if err := s.eventService.PublishEvent(NetworkElementEventTopic, pubEvent); err != nil {
go func() {
......@@ -168,7 +167,6 @@ func (s *NetworkElementService) Update(networkElementToUpdate networkelement.Net
return err
}
// TODO (faseid): check if we want to add the paths with values here instead of empty map!
pubEvent := event.NewUpdateEvent(networkElementToUpdate.ID())
if err := s.eventService.PublishEvent(NetworkElementEventTopic, pubEvent); err != nil {
go func() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment