Skip to content

Commit 029e87d

Browse files
Merge pull request #2047 from ramkishor-ch/issue_2014
Fixed Description and some features are missing in slcli block snapshot-set-notification, slcli block subnets-assign, slcli block subnets-list, slcli block subnets-remove
2 parents b6e6f2d + f1e1839 commit 029e87d

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

SoftLayer/CLI/block/snapshot/set_notify_status.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ def cli(env, volume_id, enable):
2020
"""Enables/Disables snapshot space usage threshold warning for a given volume."""
2121
block_manager = SoftLayer.BlockStorageManager(env.client)
2222

23-
status = block_manager.set_volume_snapshot_notification(volume_id, enable)
23+
block_manager.set_volume_snapshot_notification(volume_id, enable)
2424

25-
if status:
26-
click.echo(
25+
click.echo(
2726
'Snapshots space usage threshold warning notification has bee set to %s for volume %s'
2827
% (enable, volume_id))

SoftLayer/CLI/block/subnets/assign.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
def cli(env, access_id, subnet_id):
1515
"""Assign block storage subnets to the given host id.
1616
17+
EXAMPLE::
18+
19+
slcli block subnets-assign 111111 --subnet-id 222222
20+
slcli block subnets-assign 111111 --subnet-id 222222 --subnet-id 333333
21+
ACCESS_ID is the host_id obtained by: softlayer slcli block access-list <volume_id>
22+
1723
access_id is the host_id obtained by: slcli block access-list <volume_id>
1824
1925
SoftLayer_Account::iscsiisolationdisabled must be False to use this command

SoftLayer/CLI/block/subnets/list.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
def cli(env, access_id):
2222
"""List block storage assigned subnets for the given host id.
2323
24+
Example::
25+
26+
slcli block subnets-list 12345678
27+
ACCESS_ID is the host_id obtained by: softlayer slcli block access-list <volume_id>
28+
2429
access_id is the host_id obtained by: slcli block access-list <volume_id>
2530
"""
2631

SoftLayer/CLI/block/subnets/remove.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
def cli(env, access_id, subnet_id):
1515
"""Remove block storage subnets for the given host id.
1616
17+
Example::
18+
19+
slcli block subnets-remove 111111 --subnet-id 222222
20+
slcli block subnets-remove 111111 --subnet-id 222222 --subnet-id 333333
21+
ACCESS_ID is the host_id obtained by: slcli block access-list <volume_id>
22+
1723
access_id is the host_id obtained by: slcli block access-list <volume_id>
1824
1925
SoftLayer_Account::iscsiisolationdisabled must be False to use this command

0 commit comments

Comments
 (0)