From f1d364fe7069c699def9af20b8d0d884283e4097 Mon Sep 17 00:00:00 2001 From: Mauricio Vasquez B Date: Wed, 27 Mar 2019 14:58:49 -0500 Subject: [PATCH] polycubectl: fix help for services The parameters required to add a services have changed. Fixes: d8d280cd96a4 ("Added new REST API and validation code") Signed-off-by: Mauricio Vasquez B --- src/polycubectl/harcodedhelp.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/polycubectl/harcodedhelp.go b/src/polycubectl/harcodedhelp.go index 126072aba..d4a84c269 100644 --- a/src/polycubectl/harcodedhelp.go +++ b/src/polycubectl/harcodedhelp.go @@ -101,7 +101,8 @@ func printServicesAddHelp() { var output = [][]string{} output = append(output, []string{"Params:", "", ""}) output = append(output, []string{"name=value", "string", "Name of the service"}) - output = append(output, []string{"servicecontroller=value", "string", "Name of the library (e.g. libpcn-bridge.so)"}) + output = append(output, []string{"uri=value", "string", "Path of the service (e.g. libpcn-bridge.so)"}) + output = append(output, []string{"type=value", "string", "Service type. lib or grpc"}) config := columnize.DefaultConfig() config.NoTrim = true @@ -111,7 +112,7 @@ func printServicesAddHelp() { Buffer += fmt.Sprintln(result) Buffer += fmt.Sprintf("\n") Buffer += fmt.Sprintf("Example:\n") - Buffer += fmt.Sprintf(" services add name=bridge servicecontroller=libpcn-bridge.so\n\n") + Buffer += fmt.Sprintf(" services add name=bridge uri=libpcn-bridge.so type=lib\n\n") } func printServicesDelHelp() {