Skip to content

Commit f621aec

Browse files
Merge branch 'issue_731' of github.ibm.com:Ramkishor-Chaladi/softlayer-cli into Ramkishor-Chaladi-issue_731
2 parents 752d9c7 + 2d18ad7 commit f621aec

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

plugin/commands/block/subnets_assign.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ func NewSubnetsAssignCommand(sl *metadata.SoftlayerStorageCommand) *SubnetsAssig
2727
cobraCmd := &cobra.Command{
2828
Use: "subnets-assign " + T("IDENTIFIER"),
2929
Short: T("Assign block storage subnets to the given host id."),
30-
Long: T(`${COMMAND_NAME} sl {{.storageType}} subnets-assign ACCESS_ID [OPTIONS]
30+
Long: T("access_id is the host_id obtained by: sl block access-list <volume_id> SoftLayer_Account::iscsiisolationdisabled must be False to use this command") +
31+
" " + T(`${COMMAND_NAME} sl {{.storageType}} subnets-assign ACCESS_ID [OPTIONS]
3132
3233
EXAMPLE:
3334
${COMMAND_NAME} sl {{.storageType}} subnets-assign 111111 --subnet-id 222222
@@ -38,7 +39,7 @@ EXAMPLE:
3839
return thisCmd.Run(args)
3940
},
4041
}
41-
cobraCmd.Flags().IntSliceVar(&thisCmd.SubnetIds, "subnet-id", []int{}, T("IDs of the subnets to assign"))
42+
cobraCmd.Flags().IntSliceVar(&thisCmd.SubnetIds, "subnet-id", []int{}, T("IDs of the subnets to assign; e.g.: --subnet-id 1234"))
4243
//#nosec G104 -- This is a false positive
4344
cobraCmd.MarkFlagRequired("subnet-id")
4445
thisCmd.Command = cobraCmd

plugin/commands/block/subnets_list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ func NewSubnetsListCommand(sl *metadata.SoftlayerStorageCommand) *SubnetsListCom
2626
cobraCmd := &cobra.Command{
2727
Use: "subnets-list " + T("IDENTIFIER"),
2828
Short: T("List block storage assigned subnets for the given host id."),
29-
Long: T(`${COMMAND_NAME} sl {{.storageType}} subnets-list ACCESS_ID [OPTIONS]
29+
Long: T("access_id is the host_id obtained by: sl block access-list <volume_id>") +
30+
" " + T(`${COMMAND_NAME} sl {{.storageType}} subnets-list ACCESS_ID [OPTIONS]
3031
3132
EXAMPLE:
3233
${COMMAND_NAME} sl {{.storageType}} subnets-list 12345678

plugin/commands/block/subnets_remove.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ func NewSubnetsRemoveCommand(sl *metadata.SoftlayerStorageCommand) *SubnetsRemov
2727
cobraCmd := &cobra.Command{
2828
Use: "subnets-remove " + T("IDENTIFIER"),
2929
Short: T("Remove block storage subnets to the given host id."),
30-
Long: T(`${COMMAND_NAME} sl {{.storageType}} subnets-remove ACCESS_ID [OPTIONS]
30+
Long: T("access_id is the host_id obtained by: sl block access-list <volume_id> SoftLayer_Account::iscsiisolationdisabled must be False to use this command") +
31+
" " + T(`${COMMAND_NAME} sl {{.storageType}} subnets-remove ACCESS_ID [OPTIONS]
3132
3233
EXAMPLE:
3334
${COMMAND_NAME} sl {{.storageType}} subnets-remove 111111 --subnet-id 222222

0 commit comments

Comments
 (0)