diff options
author | Ritu Sood <ritu.sood@intel.com> | 2020-08-29 01:27:53 -0700 |
---|---|---|
committer | Ritu Sood <ritu.sood@intel.com> | 2020-09-02 13:59:58 -0700 |
commit | d8ed6e76a40b8942c2b56c623dcc097d734e3dca (patch) | |
tree | fe5712061d02d1d971b84cbc2f2f7bca68666cfd /src/tools/emcoctl/cmd/config.go | |
parent | d14246bb9a2c8874f9925c45322d678a93584adb (diff) |
Update CLI with complete get implementation
CLI updated with get functionality. Also adding
vFw test case
Issue-ID: MULTICLOUD-1065
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I7bd22aca9fac9cb7b1f4c93d0ffad5b07b62cced
Diffstat (limited to 'src/tools/emcoctl/cmd/config.go')
-rw-r--r-- | src/tools/emcoctl/cmd/config.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/emcoctl/cmd/config.go b/src/tools/emcoctl/cmd/config.go index c5e44660..8af1cc28 100644 --- a/src/tools/emcoctl/cmd/config.go +++ b/src/tools/emcoctl/cmd/config.go @@ -39,6 +39,20 @@ const urlVersion string = "v2" const urlPrefix string = "http://" var Configurations EmcoConfigurations +// SetDefaultConfiguration default configuration if t +func SetDefaultConfiguration() { + Configurations.Orchestrator.Host = "localhost" + Configurations.Orchestrator.Port = 9015 + Configurations.Clm.Host = "localhost" + Configurations.Clm.Port = 9061 + Configurations.Ncm.Host = "localhost" + Configurations.Ncm.Port = 9031 + Configurations.Dcm.Host = "localhost" + Configurations.Dcm.Port = 0 + Configurations.OvnAction.Host = "localhost" + Configurations.OvnAction.Port = 9051 +} + // GetOrchestratorURL Url for Orchestrator func GetOrchestratorURL() string { if Configurations.Orchestrator.Host == "" || Configurations.Orchestrator.Port == 0 { |