SEBA-841 importer to parse all status from redfish server for data collection purpose / remove demotest binary
SEBA-856 SendDeviceList- This API will add all devices in the list
SEBA-858 DeleteDeviceList- This API will remove all devices in the list
decouple add/remove event subscription routines and device data file update
remove 'protocol'
SEBA-874 get rid of the 'vendor' argument called by some API's
Change-Id: Icc044dd4661c3cc14f02ad1a5f52e18116da63aa
diff --git a/demo_test/cmd_client/cmd_cl.go b/demo_test/cmd_client/cmd_cl.go
index e1ee3bb..2f8d865 100644
--- a/demo_test/cmd_client/cmd_cl.go
+++ b/demo_test/cmd_client/cmd_cl.go
@@ -18,9 +18,6 @@
import "fmt"
import "bufio"
import "os"
-import "strings"
-
-var attach_ip string = ""
func main() {
// connect to this socket
@@ -29,29 +26,14 @@
reader := bufio.NewReader(os.Stdin)
for {
// read in input from stdin
- if(attach_ip != ""){
- fmt.Printf("[%v] CMD to send :", attach_ip)
- }else{
- fmt.Print("CMD to send :")
- }
+ fmt.Print("CMD to send : ")
text, _ := reader.ReadString('\n')
-
// send to socket
fmt.Fprintf(conn, text + "\n")
- cmd := strings.TrimSuffix(text, "\n")
- s := strings.Split(cmd, ":")
- cmd = s[0]
-
- if(cmd == "attach"){
- // listen for reply
- t_attach_ip, _ := bufio.NewReader(conn).ReadString('\n')
- attach_ip = strings.TrimSuffix(t_attach_ip, "\n")
- }else{
- // listen for reply
- message, _ = bufio.NewReader(conn).ReadString('\n')
- fmt.Print("Return from server: " + message)
- }
+ // listen for reply
+ message, _ = bufio.NewReader(conn).ReadString('\n')
+ fmt.Print("Return from server: " + message)
if message == "QUIT\n"{
break