def get_sds_by_ip(self,ip):
        """
        Get ScaleIO SDS object by its ip address
        :param name: IP address of SDS
        :return: ScaleIO SDS object
        :raise KeyError: No SDS with specified ip found
        :rtype: SDS object
        """
        if self.conn.is_ip_addr(ip):
            for sds in self.sds:
                for sdsIp in sds.ipList:
                    if sdsIp == ip:
                        return sds
            raise KeyError("SDS of that name not found")
        else:
            raise ValueError("Malformed IP address - get_sds_by_ip()")
def get_sds_by_ip ( self , ip ) : if self . conn . is_ip_addr ( ip ) : for sds in self . sds : for sdsIp in sds . ipList : if sdsIp == ip : return sds raise KeyError ( "SDS of that name not found" ) else : raise ValueError ( "Malformed IP address - get_sds_by_ip()" )
Get ScaleIO SDS object by its ip address
        :param name: IP address of SDS
        :return: ScaleIO SDS object
        :raise KeyError: No SDS with specified ip found
        :rtype: SDS object