diff --git a/northbound/server/pnd.go b/northbound/server/pnd.go index bb70bf51484c7f25ee1cc96ead2f7a0d0796019f..3cfdbd6fbcdf00f73c37df37081da888e7e865ea 100644 --- a/northbound/server/pnd.go +++ b/northbound/server/pnd.go @@ -2,6 +2,7 @@ package server import ( "context" + "strings" "time" ppb "code.fbi.h-da.de/danet/api/go/gosdn/pnd" @@ -259,7 +260,11 @@ func (p pndServer) GetPath(ctx context.Context, request *ppb.GetPathRequest) (*p log.Error(err) return nil, status.Errorf(codes.Aborted, "%v", err) } - _, err = pnd.Request(duid, request.Path) + + // In case we get the path from grpc-gateway we have to replace + path := strings.ReplaceAll(request.Path, "||", "/") + + _, err = pnd.Request(duid, path) if err != nil { log.Error(err) return nil, status.Errorf(codes.Aborted, "%v", err)