Skip to content

Commit ae8e709

Browse files
Merge pull request #991 from FernandoOjeda/fo_add_iops_block_volume_list
Add iops field in `slcli block volume-list`
2 parents b8bc75a + 5c1dfa5 commit ae8e709

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

SoftLayer/CLI/block/list.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
mask="storageType.keyName"),
2424
column_helper.Column('capacity_gb', ('capacityGb',), mask="capacityGb"),
2525
column_helper.Column('bytes_used', ('bytesUsed',), mask="bytesUsed"),
26+
column_helper.Column('iops', ('iops',), mask="iops"),
2627
column_helper.Column('ip_addr', ('serviceResourceBackendIpAddress',),
2728
mask="serviceResourceBackendIpAddress"),
2829
column_helper.Column('lunId', ('lunId',), mask="lunId"),
@@ -42,6 +43,7 @@
4243
'storage_type',
4344
'capacity_gb',
4445
'bytes_used',
46+
'iops',
4547
'ip_addr',
4648
'lunId',
4749
'active_transactions',

tests/CLI/modules/block_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def test_volume_list(self):
108108
'capacity_gb': 20,
109109
'datacenter': 'dal05',
110110
'id': 100,
111+
'iops': None,
111112
'ip_addr': '10.1.2.3',
112113
'lunId': None,
113114
'rep_partner_count': None,

0 commit comments

Comments
 (0)