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

Merge branch '243-refactor-how-pnds-are-implemented-in-the-code' of...

Merge branch '243-refactor-how-pnds-are-implemented-in-the-code' of code.fbi.h-da.de:danet/gosdn into 243-refactor-how-pnds-are-implemented-in-the-code
parents f691b7cc 3978b4eb
No related branches found
No related tags found
1 merge request!416Resolve "Refactor how PNDs are implemented in the code"
Pipeline #138109 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