(self, device, ip, user, password, prefix, pm)
Instantiate _our_ stuff
Instantiate _our_ stuff
Instantiate _our_ stuff
def __init__(self, device, ip, user, password, prefix, pm):
        """Instantiate _our_ stuff
        """

        self.device = device
        self.ip = ip
        self.netapp_user = user
        self.netapp_password = password
        self.path_prefix = prefix
        self.publish_metric = pm
        self._netapp_login()

        filers_xml = self.get_netapp_data()

        for volume in filers_xml:
            max_inodes = volume.find('files-total').text
            used_inodes = volume.find('files-used').text
            volume = volume.find('name').text
            self.push('max_inodes', max_inodes, volume)
            self.push('used_inodes', used_inodes, volume)
def __init__ ( self , device , ip , user , password , prefix , pm ) : self . device = device self . ip = ip self . netapp_user = user self . netapp_password = password self . path_prefix = prefix self . publish_metric = pm self . _netapp_login ( ) filers_xml = self . get_netapp_data ( ) for volume in filers_xml : max_inodes = volume . find ( 'files-total' ) . text used_inodes = volume . find ( 'files-used' ) . text volume = volume . find ( 'name' ) . text self . push ( 'max_inodes' , max_inodes , volume ) self . push ( 'used_inodes' , used_inodes , volume )