@@ -201,6 +201,40 @@ def deauthorize_host_to_volume(self, volume_id,
201201 return self .client .call ('Network_Storage' , 'removeAccessFromHostList' ,
202202 host_templates , id = volume_id , ** kwargs )
203203
204+ def assign_subnets_to_acl (self , access_id , subnets_id ):
205+ """Assigns subnet records to ACL for the access host.
206+
207+ :param integer access_id: id of the access host
208+ :param integer subnets_id: The ids of the subnets to be assigned
209+ :return: Returns int array of assigned subnet ids
210+ """
211+ return self .client .call ('Network_Storage_Allowed_Host' ,
212+ 'assignSubnetsToAcl' ,
213+ subnets_id ,
214+ id = access_id )
215+
216+ def remove_subnets_from_acl (self , access_id , subnets_id ):
217+ """Removes subnet records from ACL for the access host.
218+
219+ :param integer access_id: id of the access host
220+ :param integer subnets_id: The ids of the subnets to be removed
221+ :return: Returns int array of removed subnet ids
222+ """
223+ return self .client .call ('Network_Storage_Allowed_Host' ,
224+ 'removeSubnetsFromAcl' ,
225+ subnets_id ,
226+ id = access_id )
227+
228+ def get_subnets_in_acl (self , access_id ):
229+ """Returns a list of subnet records for the access host.
230+
231+ :param integer access_id: id of the access host
232+ :return: Returns an array of SoftLayer_Network_Subnet objects
233+ """
234+ return self .client .call ('Network_Storage_Allowed_Host' ,
235+ 'getSubnetsInAcl' ,
236+ id = access_id )
237+
204238 def get_replication_partners (self , volume_id ):
205239 """Acquires list of replicant volumes pertaining to the given volume.
206240
0 commit comments