[VOL-4119] voltctl incorrect argument handling
Fixing response table formatting, and unexported field
Change-Id: I214190958b852387852d890b9ce2a052edc1f308
diff --git a/VERSION b/VERSION
index fdd3be6..266146b 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.6.2
+1.6.3
diff --git a/internal/pkg/commands/devices.go b/internal/pkg/commands/devices.go
index e5aa13f..b0f0ab9 100644
--- a/internal/pkg/commands/devices.go
+++ b/internal/pkg/commands/devices.go
@@ -48,8 +48,8 @@
DEFAULT_DEVICE_PM_CONFIG_GROUP_LIST_FORMAT = "table{{.GroupName}}\t{{.Enabled}}\t{{.GroupFreq}}"
DEFAULT_DEVICE_VALUE_GET_FORMAT = "table{{.Name}}\t{{.Result}}"
DEFAULT_DEVICE_IMAGE_LIST_GET_FORMAT = "table{{.Name}}\t{{.Url}}\t{{.Crc}}\t{{.DownloadState}}\t{{.ImageVersion}}\t{{.LocalDir}}\t{{.ImageState}}\t{{.FileSize}}"
- ONU_IMAGE_LIST_FORMAT = "table{{.Version}}\t{{.Committed}}\t{{.Active}}\t{{.Valid}}\t{{.ProductCode}}"
- ONU_IMAGE_STATUS_FORMAT = "table{{.Version}}\t{{.DownloadState}}\t{{.Reason}}\t{{.ImageState}}"
+ ONU_IMAGE_LIST_FORMAT = "table{{.Version}}\t{{.IsCommited}}\t{{.IsActive}}\t{{.IsValid}}\t{{.ProductCode}}\t{{.Hash}}"
+ ONU_IMAGE_STATUS_FORMAT = "table{{.DeviceId}}\t{{.ImageState.Version}}\t{{.ImageState.DownloadState}}\t{{.ImageState.Reason}}\t{{.ImageState.ImageState}}\t"
DEFAULT_DEVICE_GET_PORT_STATUS_FORMAT = `
TXBYTES: {{.TxBytes}}
TXPACKETS: {{.TxPackets}}
@@ -275,7 +275,7 @@
Args struct {
ImageVersion string `positional-arg-name:"IMAGE_VERSION" required:"yes"`
Url string `positional-arg-name:"IMAGE_URL" required:"yes"`
- vendor string `positional-arg-name:"IMAGE_VENDOR"`
+ Vendor string `positional-arg-name:"IMAGE_VENDOR"`
ActivateOnSuccess bool `positional-arg-name:"IMAGE_ACTIVATE_ON_SUCCESS"`
CommitOnSuccess bool `positional-arg-name:"IMAGE_COMMIT_ON_SUCCESS"`
Crc uint32 `positional-arg-name:"IMAGE_CRC"`
@@ -1490,7 +1490,7 @@
Image: &voltha.Image{
Url: options.Args.Url,
Crc32: options.Args.Crc,
- Vendor: options.Args.vendor,
+ Vendor: options.Args.Vendor,
Version: options.Args.ImageVersion,
},
ActivateOnSuccess: options.Args.ActivateOnSuccess,