From patchwork Fri Dec 11 12:05:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Heider X-Patchwork-Id: 1414874 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=vlVl5Cn6; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Xhi/Ejff; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CsqKK2NRvz9sR4 for ; Fri, 11 Dec 2020 23:07:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Kr/vl29doPtb5UQCJw0jg5/kiSOwTWsfGPGxeBzn47w=; b=vlVl5Cn60B5uwiZqwSTQ5MRyXw AnovOynQsOpzqpvbYxUt0Ww91u4JB6t4eEdFPWEzzxq8zFLSQ52T92SCP5PADvIoc9jZESJBM14qM 5K+9RJx1evnjDPWtHuRChEnVtUz8DXnhbjx68/nl6zUiXHEmbxY9A5tbrkqrp5T4kexDQhdWY33wU IpLg0B6F7d+rlu5AzbUtkkXQyiM15ZRrIE/mnaK82j42MsPcUj960KRw8K1wzUOzwMDM0s5HSOwC+ AzgsBx5SdMusGRWir7lhC1j+XyTC/4wDeOXdNpU29GfEcoFD8ixgXHx9A8Ubtp53Q8BjOO0re/0vi cKc1CzuQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1knhBA-0005O4-4P; Fri, 11 Dec 2020 12:05:44 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1knhAp-0005IC-7k for openwrt-devel@lists.openwrt.org; Fri, 11 Dec 2020 12:05:27 +0000 Received: by mail-wr1-x444.google.com with SMTP id a12so8771207wrv.8 for ; Fri, 11 Dec 2020 04:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=tQRjCgCxeD+TobssdF5fK06sUgxBYlyXhAVtyIwOhGo=; b=Xhi/Ejffzj+WZ7CujXlV97VGF4mVSrMXBLJ1Iz3uxKQ88k81M7HD3Tw8jlXZseekBS A68mScZEhQPqDp+/Q1Se1qJL3pEgTKo6TVrItqbg7FwHE23jJ0YSI7Ak+UuwzL6UhTV1 FSpPO4FVDLVQyE8MR5MI2syJofjPQTHl7J+aPAaeT0MJmZiIUqbRGEfpH622Z34r3A0a y4PdlMgGsLEgjL/6nIA6XoA8evEVfK+N48IINtRxTcCCxdpcBLkkBfSgNCvb2uDMh51s dlIe413RTRmxAnrGgXH/emzChw3y39x0R8Icrm2RiNuaLJUWDbP00W1LPLyZCAZV1P6s S0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tQRjCgCxeD+TobssdF5fK06sUgxBYlyXhAVtyIwOhGo=; b=MuOo1UIoZDzLq+X3VSY8XOd8R7T8cteVOyAqFUG1tJQ0N10qu/w4EmHkxR9JEeg6x/ dbv5MHghr+XhZaVDy9VAiF4otiWmapGUztyEl33imwojcfB5adAb9XB9futgEenYiCO/ AmOEmMbfJh4VdS5XYpsKbOfuXSMPqw8OhQ3tFuyZ1vzgkK8SH4gzJ9Br/bIZaZZpl27K O7Se4GV0r5XK7esHQTQqZ15VbpJTX4tYRmsfqgf1lZ0WhiKaUm1WHJYNeFBkwvKNQzl4 15leRAtOIsGZ3k7FZXTv5FAx5Jp/vjflJD34SJRcO311sN+g+ZMBFKvdMUzCcVhakBHF CKtw== X-Gm-Message-State: AOAM531YEID0j0VDjttstgci4NgCj+sA2cyE7GkzHdftcL2x9xpKw/qT GV6cTY+SIMRuLh/M2GJVGRPOYIoZySSN5A== X-Google-Smtp-Source: ABdhPJyKgPkvSBwBoa0Sco63OfRem2+VUgSRb3mz3eIym6WVhlZ1K+osWeBrhyyUFsYz4x1gUtbtqQ== X-Received: by 2002:adf:ce0c:: with SMTP id p12mr5336870wrn.34.1607688322019; Fri, 11 Dec 2020 04:05:22 -0800 (PST) Received: from mamamia.internal (a89-182-180-166.net-htp.de. [89.182.180.166]) by smtp.gmail.com with ESMTPSA id l1sm14552616wmi.15.2020.12.11.04.05.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 04:05:21 -0800 (PST) From: Andre Heider To: openwrt-devel@lists.openwrt.org Subject: [PATCH 08/13] ltq-vdsl-app: use ubus to provide metrics Date: Fri, 11 Dec 2020 13:05:08 +0100 Message-Id: <20201211120513.1130247-9-a.heider@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201211120513.1130247-1-a.heider@gmail.com> References: <20201211120513.1130247-1-a.heider@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201211_070523_351952_1DC39492 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [a.heider[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org luci now uses ubus directly, so remove 'lucistat'. For manual usage just print the ubus output, use luci for a pretty version. Signed-off-by: Andre Heider --- package/network/config/ltq-vdsl-app/files/dsl_control | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/network/config/ltq-vdsl-app/files/dsl_control b/package/network/config/ltq-vdsl-app/files/dsl_control index 5089d7ac31..54b739e2cd 100644 --- a/package/network/config/ltq-vdsl-app/files/dsl_control +++ b/package/network/config/ltq-vdsl-app/files/dsl_control @@ -4,10 +4,11 @@ START=97 USE_PROCD=1 -extra_command "dslstat" "Get DSL status information" -extra_command "lucistat" "Get status information in lua friendly format" +dslstat() { + ubus call dsl metrics +} -. /lib/functions/lantiq_dsl.sh +extra_command "dslstat" "Get DSL status information" # # ITU-T G.997.1 (06/2012) - Section 7.3.1.1.1 (xTU transmission system enabling (XTSE))