Skip to content

Commit 0dbd9fa

Browse files
allmightyspiffGitHub Enterprise
authored andcommitted
Merge pull request #797 from SoftLayer/Ramkishor-Chaladi-issue_731
Added description in sl block subnets-assign, sl block subnets-list, sl block subnets-remove
2 parents 752d9c7 + 142cf0f commit 0dbd9fa

14 files changed

Lines changed: 37 additions & 62 deletions

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

plugin/i18n/resources/de_DE.all.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,10 +5095,6 @@
50955095
"id": "IDs of SSH key to add to the root user, multiple occurrence allowed",
50965096
"translation": "Die IDs der SSH-Schlüssel, die dem Rootbenutzer hinzugefügt werden sollen, Mehrfachvorkommen zulässig"
50975097
},
5098-
{
5099-
"id": "IDs of the subnets to assign",
5100-
"translation": "IDs der zuzuordnenden Teilnetze"
5101-
},
51025098
{
51035099
"id": "IDs of the subnets to remove",
51045100
"translation": "IDs der zu entfernenden Teilnetze"

plugin/i18n/resources/en_US.all.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5144,8 +5144,8 @@
51445144
"translation": "IDs of SSH key to add to the root user, multiple occurrence allowed"
51455145
},
51465146
{
5147-
"id": "IDs of the subnets to assign",
5148-
"translation": "IDs of the subnets to assign"
5147+
"id": "IDs of the subnets to assign; e.g.: --subnet-id 1234",
5148+
"translation": "IDs of the subnets to assign; e.g.: --subnet-id 1234"
51495149
},
51505150
{
51515151
"id": "IDs of the subnets to remove",
@@ -9747,6 +9747,14 @@
97479747
"id": "accepts {{.Limit}} arg(s), received {{.Args}}",
97489748
"translation": "accepts {{.Limit}} arg(s), received {{.Args}}"
97499749
},
9750+
{
9751+
"id": "access_id is the host_id obtained by: sl block access-list <volume_id>",
9752+
"translation": "access_id is the host_id obtained by: sl block access-list <volume_id>"
9753+
},
9754+
{
9755+
"id": "access_id is the host_id obtained by: sl block access-list <volume_id> SoftLayer_Account::iscsiisolationdisabled must be False to use this command",
9756+
"translation": "access_id is the host_id obtained by: sl block access-list <volume_id> SoftLayer_Account::iscsiisolationdisabled must be False to use this command"
9757+
},
97509758
{
97519759
"id": "account",
97529760
"translation": "account"

plugin/i18n/resources/es_ES.all.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,10 +5095,6 @@
50955095
"id": "IDs of SSH key to add to the root user, multiple occurrence allowed",
50965096
"translation": "ID de la clave SSH para añadir al usuario root, se permiten varias apariciones"
50975097
},
5098-
{
5099-
"id": "IDs of the subnets to assign",
5100-
"translation": "ID de las subredes que asignar"
5101-
},
51025098
{
51035099
"id": "IDs of the subnets to remove",
51045100
"translation": "ID de las subredes que eliminar"

plugin/i18n/resources/fr_FR.all.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,10 +5095,6 @@
50955095
"id": "IDs of SSH key to add to the root user, multiple occurrence allowed",
50965096
"translation": "ID de la clé SSH à ajouter au superutilisateur, plusieurs occurrences autorisées"
50975097
},
5098-
{
5099-
"id": "IDs of the subnets to assign",
5100-
"translation": "ID des sous-réseaux à affecter"
5101-
},
51025098
{
51035099
"id": "IDs of the subnets to remove",
51045100
"translation": "ID des sous-réseaux à retirer"

plugin/i18n/resources/it_IT.all.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,10 +5095,6 @@
50955095
"id": "IDs of SSH key to add to the root user, multiple occurrence allowed",
50965096
"translation": "Gli ID della chiave SSH da aggiungere all'utente root, più ricorrenze consentite"
50975097
},
5098-
{
5099-
"id": "IDs of the subnets to assign",
5100-
"translation": "ID delle sottoreti da assegnare"
5101-
},
51025098
{
51035099
"id": "IDs of the subnets to remove",
51045100
"translation": "ID delle sottoreti da rimuovere"

plugin/i18n/resources/ja_JP.all.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,10 +5095,6 @@
50955095
"id": "IDs of SSH key to add to the root user, multiple occurrence allowed",
50965096
"translation": "root ユーザーに追加する SSH 鍵の ID (複数のオカレンスが許可されます)"
50975097
},
5098-
{
5099-
"id": "IDs of the subnets to assign",
5100-
"translation": "割り当てようとするサブネットの ID"
5101-
},
51025098
{
51035099
"id": "IDs of the subnets to remove",
51045100
"translation": "削除対象のサブネットの ID"

plugin/i18n/resources/ko_KR.all.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,10 +5095,6 @@
50955095
"id": "IDs of SSH key to add to the root user, multiple occurrence allowed",
50965096
"translation": "루트 사용자에게 추가할 SSH 키의 ID(다중 발생 허용)"
50975097
},
5098-
{
5099-
"id": "IDs of the subnets to assign",
5100-
"translation": "지정할 서브넷의 ID"
5101-
},
51025098
{
51035099
"id": "IDs of the subnets to remove",
51045100
"translation": "제거할 서브넷의 ID"

0 commit comments

Comments
 (0)