@@ -208,6 +208,46 @@ def deauthorize_host_to_volume(self, volume_id,
208208 return self .client .call ('Network_Storage' , 'removeAccessFromHostList' ,
209209 host_templates , id = volume_id , ** kwargs )
210210
211+ def assign_subnets_to_acl (self , access_id , subnet_ids ):
212+ """Assigns subnet records to ACL for the access host.
213+
214+ access_id is the host_id obtained by: slcli block access-list <volume_id>
215+
216+ :param integer access_id: id of the access host
217+ :param list subnet_ids: The ids of the subnets to be assigned
218+ :return: Returns int array of assigned subnet ids
219+ """
220+ return self .client .call ('Network_Storage_Allowed_Host' ,
221+ 'assignSubnetsToAcl' ,
222+ subnet_ids ,
223+ id = access_id )
224+
225+ def remove_subnets_from_acl (self , access_id , subnet_ids ):
226+ """Removes subnet records from ACL for the access host.
227+
228+ access_id is the host_id obtained by: slcli block access-list <volume_id>
229+
230+ :param integer access_id: id of the access host
231+ :param list subnet_ids: The ids of the subnets to be removed
232+ :return: Returns int array of removed subnet ids
233+ """
234+ return self .client .call ('Network_Storage_Allowed_Host' ,
235+ 'removeSubnetsFromAcl' ,
236+ subnet_ids ,
237+ id = access_id )
238+
239+ def get_subnets_in_acl (self , access_id ):
240+ """Returns a list of subnet records for the access host.
241+
242+ access_id is the host_id obtained by: slcli block access-list <volume_id>
243+
244+ :param integer access_id: id of the access host
245+ :return: Returns an array of SoftLayer_Network_Subnet objects
246+ """
247+ return self .client .call ('Network_Storage_Allowed_Host' ,
248+ 'getSubnetsInAcl' ,
249+ id = access_id )
250+
211251 def get_replication_partners (self , volume_id ):
212252 """Acquires list of replicant volumes pertaining to the given volume.
213253
0 commit comments