Skip to content

Commit 7858dbd

Browse files
Merge pull request #859 from fryxxie/feature/viewSourceSubnet
Added source_subnet when viewing access lists
2 parents b060f91 + 25905b3 commit 7858dbd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

SoftLayer/CLI/storage_utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ def _format_name(obj):
4848
allowedHardware.primaryBackendIpAddress
4949
allowedSubnets.primaryBackendIpAddress
5050
allowedIpAddresses.primaryBackendIpAddress
51+
"""),
52+
column_helper.Column(
53+
'source_subnet',
54+
('allowedHost', 'sourceSubnet',),
55+
"""
56+
allowedVirtualGuests.allowedHost.sourceSubnet
57+
allowedHardware.allowedHost.sourceSubnet
58+
allowedSubnets.allowedHost.sourceSubnet
59+
allowedIpAddresses.allowedHost.sourceSubnet
5160
"""),
5261
column_helper.Column(
5362
'host_iqn',
@@ -93,6 +102,7 @@ def _format_name(obj):
93102
'name',
94103
'type',
95104
'private_ip_address',
105+
'source_subnet',
96106
'host_iqn',
97107
'username',
98108
'password',

SoftLayer/managers/block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def get_block_volume_access_list(self, volume_id, **kwargs):
118118
if 'mask' not in kwargs:
119119
items = [
120120
'id',
121-
'allowedVirtualGuests[allowedHost[credential]]',
121+
'allowedVirtualGuests[allowedHost[credential, sourceSubnet]]',
122122
'allowedHardware[allowedHost[credential]]',
123123
'allowedSubnets[allowedHost[credential]]',
124124
'allowedIpAddresses[allowedHost[credential]]',

SoftLayer/managers/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def get_file_volume_access_list(self, volume_id, **kwargs):
115115
if 'mask' not in kwargs:
116116
items = [
117117
'id',
118-
'allowedVirtualGuests[allowedHost[credential]]',
118+
'allowedVirtualGuests[allowedHost[credential, sourceSubnet]]',
119119
'allowedHardware[allowedHost[credential]]',
120120
'allowedSubnets[allowedHost[credential]]',
121121
'allowedIpAddresses[allowedHost[credential]]',

0 commit comments

Comments
 (0)