def _periodic_task_int(self):
for intf in self.intf_list:<EOL><INDENT>attr_obj = self.get_attr_obj(intf)<EOL>status = attr_obj.get_lldp_status()<EOL>if not status:<EOL><INDENT>ret = self.pub_lldp.enable_lldp(intf)<EOL>attr_obj.update_lldp_status(ret)<EOL>continue<EOL><DEDENT>bond_intf_change = self._check_bond_interface_change(<EOL>attr_obj.get_phy_interface(), attr_obj)<EOL>tlv_data = self.pub_lldp.get_lldp_tlv(intf)<EOL>if self.cmp_store_tlv_params(intf, tlv_data) or (<EOL>attr_obj.get_db_retry_status() or bond_intf_change or (<EOL>attr_obj.get_topo_disc_send_cnt() > (<EOL>constants.TOPO_DISC_SEND_THRESHOLD))):<EOL><INDENT>ret = self.cb(intf, attr_obj)<EOL>status = not ret<EOL>attr_obj.store_db_retry_status(status)<EOL>attr_obj.reset_topo_disc_send_cnt()<EOL><DEDENT>else:<EOL><INDENT>attr_obj.incr_topo_disc_send_cnt()<EOL><DEDENT><DEDENT>
Internal periodic discovery task routine to check TLV attributes.

        This routine retrieves the LLDP TLC's on all its configured interfaces.
        If the retrieved TLC is different than the stored TLV, it invokes the
        callback.