Skip to content
Snippets Groups Projects
Commit 7bbc6a57 authored by Matthias Feyll's avatar Matthias Feyll :cookie:
Browse files

make plugin get endpoint public

parent 49872ccb
Branches
Tags
No related merge requests found
Pipeline #266240 failed
......@@ -16,6 +16,7 @@ import (
"google.golang.org/grpc/status"
mnegw "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/networkelement"
plg "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/plugin-internal"
pgw "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/pnd"
agw "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/rbac"
tgw "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/topology"
......@@ -85,6 +86,11 @@ func setupHttpServer() error {
return err
}
err = plg.RegisterPluginInternalServiceHandlerFromEndpoint(ctx, mux, *grpcServerEndpoint, opts)
if err != nil {
return err
}
// Set the HTTP server of core to the new server
c.httpServer = &http.Server{Addr: ":8080",
Handler: mux,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment