Skip to content
Snippets Groups Projects
Commit 3978b4eb authored by Malte Bauch's avatar Malte Bauch Committed by Fabian Seidl
Browse files

Apply suggestions

parent 098b8ebd
No related branches found
No related tags found
1 merge request!416Resolve "Refactor how PNDs are implemented in the code"
Pipeline #138108 failed
......@@ -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) {
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment