Skip to content

Commit 7c03862

Browse files
Ramkishor ChaladiRamkishor Chaladi
authored andcommitted
added missing description text
1 parent 1aa0c49 commit 7c03862

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

plugin/commands/block/subnets_assign.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ func NewSubnetsAssignCommand(sl *metadata.SoftlayerStorageCommand) *SubnetsAssig
2929
Short: T("Assign block storage subnets to the given host id."),
3030
Long: T(`${COMMAND_NAME} sl {{.storageType}} subnets-assign ACCESS_ID [OPTIONS]
3131
32+
access_id is the host_id obtained by: slcli block access-list <volume_id>
33+
SoftLayer_Account::iscsiisolationdisabled must be False to use this command
34+
3235
EXAMPLE:
3336
${COMMAND_NAME} sl {{.storageType}} subnets-assign 111111 --subnet-id 222222
3437
${COMMAND_NAME} sl {{.storageType}} subnets-assign 111111 --subnet-id 222222 --subnet-id 333333
@@ -38,7 +41,7 @@ EXAMPLE:
3841
return thisCmd.Run(args)
3942
},
4043
}
41-
cobraCmd.Flags().IntSliceVar(&thisCmd.SubnetIds, "subnet-id", []int{}, T("IDs of the subnets to assign"))
44+
cobraCmd.Flags().IntSliceVar(&thisCmd.SubnetIds, "subnet-id", []int{}, T("IDs of the subnets to assign; e.g.: --subnet-id 1234"))
4245
//#nosec G104 -- This is a false positive
4346
cobraCmd.MarkFlagRequired("subnet-id")
4447
thisCmd.Command = cobraCmd

plugin/commands/block/subnets_list.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ func NewSubnetsListCommand(sl *metadata.SoftlayerStorageCommand) *SubnetsListCom
2828
Short: T("List block storage assigned subnets for the given host id."),
2929
Long: T(`${COMMAND_NAME} sl {{.storageType}} subnets-list ACCESS_ID [OPTIONS]
3030
31+
access_id is the host_id obtained by: slcli block access-list <volume_id>
32+
3133
EXAMPLE:
3234
${COMMAND_NAME} sl {{.storageType}} subnets-list 12345678
3335
ACCESS_ID is the host_id obtained by: ibmcloud sl {{.storageType}} access-list <volume_id>`, sl.StorageI18n),

plugin/commands/block/subnets_remove.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ func NewSubnetsRemoveCommand(sl *metadata.SoftlayerStorageCommand) *SubnetsRemov
2929
Short: T("Remove block storage subnets to the given host id."),
3030
Long: T(`${COMMAND_NAME} sl {{.storageType}} subnets-remove ACCESS_ID [OPTIONS]
3131
32+
access_id is the host_id obtained by: slcli block access-list <volume_id>
33+
SoftLayer_Account::iscsiisolationdisabled must be False to use this command
34+
3235
EXAMPLE:
3336
${COMMAND_NAME} sl {{.storageType}} subnets-remove 111111 --subnet-id 222222
3437
${COMMAND_NAME} sl {{.storageType}} subnets-remove 111111 --subnet-id 222222 --subnet-id 333333

0 commit comments

Comments
 (0)