diff --git a/controller/northbound/server/networkElement.go b/controller/northbound/server/networkElement.go index bd3904bb0c641a100ea32349344f24f108191660..6b655e3ad43e7a6975cbe22f12c36401a751894d 100644 --- a/controller/northbound/server/networkElement.go +++ b/controller/northbound/server/networkElement.go @@ -403,23 +403,6 @@ func fillMneBySpecificPath(nme networkelement.NetworkElement, path string) (*mne return mne, nil } -// func genGnmiNotification(path *gpb.Path, val any) (*gpb.Notification, error) { -// typedVal, err := ygot.EncodeTypedValue(val, gpb.Encoding_JSON_IETF) -// if err != nil { -// return nil, err -// } -// return &gpb.Notification{ -// Timestamp: time.Now().UnixNano(), -// Update: []*gpb.Update{ -// { -// Path: &gpb.Path{ -// Elem: path.GetElem(), -// }, -// Val: typedVal, -// }, -// }, -// }, nil -// } // GetPath gets a path on a mne. func (n *NetworkElementServer) GetPath(ctx context.Context, request *mnepb.GetPathRequest) (*mnepb.GetPathResponse, error) { diff --git a/controller/nucleus/networkElementWatcher.go b/controller/nucleus/networkElementWatcher.go index ccfba7fd65a650ddcda1bf49a53670be5aa7ece5..722351e43e4af7a43e21501f029df8c57d36d5ef 100644 --- a/controller/nucleus/networkElementWatcher.go +++ b/controller/nucleus/networkElementWatcher.go @@ -39,7 +39,7 @@ type networkelementSubscriptionHelper struct { stopFunc context.CancelFunc } -// NewNetworkElementWatcher takes a pndStore to subscribe to network element paths. +// NewNetworkElementWatcher allows to subscribe to network element paths. func NewNetworkElementWatcher(mneService networkelement.Service, eventService eventInterfaces.Service) *NetworkElementWatcher { return &NetworkElementWatcher{ mneService: mneService,