Skip to content

Commit

Permalink
Merge pull request #2047 from ramkishor-ch/issue_2014
Browse files Browse the repository at this point in the history
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
  • Loading branch information
allmightyspiff authored Jul 24, 2023
2 parents b6e6f2d + f1e1839 commit 029e87d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SoftLayer/CLI/block/snapshot/set_notify_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ def cli(env, volume_id, enable):
"""Enables/Disables snapshot space usage threshold warning for a given volume."""
block_manager = SoftLayer.BlockStorageManager(env.client)

status = block_manager.set_volume_snapshot_notification(volume_id, enable)
block_manager.set_volume_snapshot_notification(volume_id, enable)

if status:
click.echo(
click.echo(
'Snapshots space usage threshold warning notification has bee set to %s for volume %s'
% (enable, volume_id))
6 changes: 6 additions & 0 deletions SoftLayer/CLI/block/subnets/assign.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
def cli(env, access_id, subnet_id):
"""Assign block storage subnets to the given host id.
EXAMPLE::
slcli block subnets-assign 111111 --subnet-id 222222
slcli block subnets-assign 111111 --subnet-id 222222 --subnet-id 333333
ACCESS_ID is the host_id obtained by: softlayer slcli block access-list <volume_id>
access_id is the host_id obtained by: slcli block access-list <volume_id>
SoftLayer_Account::iscsiisolationdisabled must be False to use this command
Expand Down
5 changes: 5 additions & 0 deletions SoftLayer/CLI/block/subnets/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
def cli(env, access_id):
"""List block storage assigned subnets for the given host id.
Example::
slcli block subnets-list 12345678
ACCESS_ID is the host_id obtained by: softlayer slcli block access-list <volume_id>
access_id is the host_id obtained by: slcli block access-list <volume_id>
"""

Expand Down
6 changes: 6 additions & 0 deletions SoftLayer/CLI/block/subnets/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
def cli(env, access_id, subnet_id):
"""Remove block storage subnets for the given host id.
Example::
slcli block subnets-remove 111111 --subnet-id 222222
slcli block subnets-remove 111111 --subnet-id 222222 --subnet-id 333333
ACCESS_ID is the host_id obtained by: slcli block access-list <volume_id>
access_id is the host_id obtained by: slcli block access-list <volume_id>
SoftLayer_Account::iscsiisolationdisabled must be False to use this command
Expand Down

0 comments on commit 029e87d

Please sign in to comment.