Skip to content
Snippets Groups Projects

Change the current gosdn plugin implementation from Go's internal plugin system to hashicorp's go-plugins

Merged Ghost User requested to merge mb/plugin-registry-hashicorp-go-plugin into develop
2 files
+ 21
14
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 18
0
package main
import (
"code.fbi.h-da.de/danet/gosdn/controller/plugin/shared"
"code.fbi.h-da.de/danet/gosdn/plugins/openconfig"
"github.com/hashicorp/go-plugin"
)
func main() {
deviceModel, _ := openconfig.NewDeviceModel()
plugin.Serve(&plugin.ServeConfig{
HandshakeConfig: shared.Handshake,
Plugins: map[string]plugin.Plugin{
"deviceModel": &shared.DeviceModelPlugin{Impl: deviceModel},
},
GRPCServer: plugin.DefaultGRPCServer,
})
}
Loading