Skip to content
Snippets Groups Projects

V.0.1.0 Codename Threadbare

Closed Ghost User requested to merge v.0.1.0-codename-threadbare into master
4 files
+ 22
25
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -22,17 +22,16 @@ type command struct {
//CommandList contains the specific goSDN gRPC calls
var CommandList = []command{
{"hello", "test connection to goSDN controller", goSDNSayHello},
{"shutdown", "request goSDN controller to shutdown", goSDNShutdown},
{"hello", "test connection to controller", goSDNSayHello},
{"testdb", "test all database connections", goSDNTestDB},
{"tapigetedge", "get list of edges", TAPIGetEdge},
{"tapigetedgenode", "get list of edgenodes", TAPIGetEdgeNode},
{"tapigetlink", "get list of links", TAPIGetLink},
{"tapiGetDevices", "creates devices", TAPIGetEdge},
{"tapiGetInterfaces", "creates interfaces", TAPIGetEdgeNode},
{"tapiGetLinks", "creates links between devices", TAPIGetLink},
{"shutdown", "request controller to shutdown", goSDNShutdown},
}
//Connect creates a new connection to the gRPC server
func Connect(address string) (*grpc.ClientConn, error) {
//address := "141.100.70.170:55066"
return grpc.Dial(address, grpc.WithInsecure(), grpc.WithTimeout(5*time.Second), grpc.WithBlock())
}
@@ -51,7 +50,7 @@ func GoSDNLogStream(conn *grpc.ClientConn, clv *tview.TextView) error {
streamError = err
break
}
response := []byte(msg.Log + "\n")
response := []byte(msg.Log)
clv.Write(response)
}
}(stream)
Loading