From patchwork Tue Dec 15 09:35:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Heider X-Patchwork-Id: 1416349 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=fbOfpLOl; 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=Z6is+eRH; 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 4CwCpX3jdKz9s0b for ; Tue, 15 Dec 2020 20:37:24 +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:Cc: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:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FPXpnxubZkxDHf4qhTsK2tSGGfQcdHqNmamr15AOQnQ=; b=fbOfpLOlmRBw6GUnUS6IvyhnX clxDTm2RgFz0PrBGKDSOBiMkdFc7rG7bC1AvRWZTjVeGNPnPtMpzTjM2k/8VKeyvPBR0RIi252A5m 9e1js1Z4BnIslYoHWx3+zOfjkuNox3DDMX35EysbXHAW3mzHr7CmyY0xyuW5KKOaKc38I6zJ9Hv0S N7Cz5SWkAazJluexB+QN/QOE6Z1d7Fdi8K3er1E5v1PFcvyM5yi/olWzqi8ZXQKK6wUkWjfVL/81g Te08EVpeHGcqgbOR6/KYcE57/htvbzSlqUl/ffWbDNuJ+/0SGb+PBvRG3fP60SU+jutW1T5Fgz19A HojFULS1A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp6kQ-0000fI-Tk; Tue, 15 Dec 2020 09:35:58 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp6k8-0000ZZ-L6 for openwrt-devel@lists.openwrt.org; Tue, 15 Dec 2020 09:35:41 +0000 Received: by mail-wm1-x341.google.com with SMTP id 190so6000718wmz.0 for ; Tue, 15 Dec 2020 01:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P+bLkKjaf3JJ8LzwTYk+7JEFGnyLq96IpP4SGCfvn/8=; b=Z6is+eRHdQ1Pub46jWLknNMFtD8roEL7i+2QGzEcSIIg9XjENBrBfeEku7wHc42AnL TD3Yu6zPn1uqfwdmPT43N9iWQtb/QJOogjDUnyHFNSigeJeRUkFaQ0lyYpPnAJDw+uUv Bp7Ja6fYSjdpLDGS6NwCmDtfEfJzjhhK1ev/GhR8cTwPpSuVWjKH0DYLu8ocqH1PqRue 9bEuNY37U8ncsVqhNMJvbLZKIh7DpgSd0OLvRy7OINIHBfwKxyHMRwtLfRknVgR8+iD3 wSIxb2d8B23MDPr4ByDRst1Eoz5Vxp/qaLVTTLofLCWsaARtY8L2ip0rfPkNC9BfPVaV 5aIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P+bLkKjaf3JJ8LzwTYk+7JEFGnyLq96IpP4SGCfvn/8=; b=oRl3VqYSTMfZHS9OX0gxUesz5lkEfqBvyxVRQqe5viaolU3OVjO275L2LAxx15SISh MSNCSzSGui20E+DY+BirjGhDEE3Qx9tEjjqZjKk4elfyLx3ChLcjI4uJdkUonm7NjLu3 EHlp9Xtjl9Y6AzUzHKeprAcpOiLfKlvRA8Xz8S1T98SDB1nkzdDRoNOZfV9t1pCDVzqE mXDupOv0ZteX9StRpMClmRJxZ9qg/3Uw1ZXQw6Xz2jcbdoje23w6K089NtvS340ZbFmr eljKmrQzYZLbs5l/U0k9cmfYQjeJQ1pzJsm8Bky30gVRCoTXmNIpSe2Jc73AyPCqwOc5 vLaA== X-Gm-Message-State: AOAM5306MMa6WnbAVSPxUWFAmdsBe2azM9zl+146KvnVG7x3F3HbH2x8 EcAiU7tHFpWIuS2ZV3BQ5xxl3cV8QVe+IQ== X-Google-Smtp-Source: ABdhPJyEigrBPASffMNfnaewtVfSMoI0ssONprXXx5mMisFVaVRlZ1d8qHpW7Y4cP4KMt0cxnKuR5A== X-Received: by 2002:a7b:c385:: with SMTP id s5mr31653738wmj.170.1608024939237; Tue, 15 Dec 2020 01:35:39 -0800 (PST) Received: from mamamia.internal (a89-182-183-191.net-htp.de. [89.182.183.191]) by smtp.gmail.com with ESMTPSA id i8sm35133423wma.32.2020.12.15.01.35.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 01:35:38 -0800 (PST) From: Andre Heider To: openwrt-devel@lists.openwrt.org Subject: [PATCH 07/12] ltq-vdsl-app: use ubus to provide metrics Date: Tue, 15 Dec 2020 10:35:26 +0100 Message-Id: <20201215093531.1763475-8-a.heider@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201215093531.1763475-1-a.heider@gmail.com> References: <20201215093531.1763475-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-20201215_043540_756261_A6052667 X-CRM114-Status: UNSURE ( 9.71 ) 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:341 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_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from 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: , Cc: Martin Schiller 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 Tested-by: Martin Schiller --- 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))