From patchwork Sat Mar 18 23:50:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1758585 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SU9fiQu1; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PfHnS5dGTz1yWp for ; Sun, 19 Mar 2023 10:50:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E5F6A4171F; Sat, 18 Mar 2023 23:50:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E5F6A4171F Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SU9fiQu1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hqojvTKGcbP1; Sat, 18 Mar 2023 23:50:47 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 573D14161B; Sat, 18 Mar 2023 23:50:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 573D14161B Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 94BA1C009C; Sat, 18 Mar 2023 23:50:43 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2ADCBC0035 for ; Sat, 18 Mar 2023 23:50:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EA7BA81ECC for ; Sat, 18 Mar 2023 23:50:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EA7BA81ECC Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=SU9fiQu1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aNgejIEEW_ev for ; Sat, 18 Mar 2023 23:50:39 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 15B7E81EAD Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by smtp1.osuosl.org (Postfix) with ESMTPS id 15B7E81EAD for ; Sat, 18 Mar 2023 23:50:38 +0000 (UTC) Received: by mail-lj1-x232.google.com with SMTP id e11so13601lji.8 for ; Sat, 18 Mar 2023 16:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679183437; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3ZcMaYXilYF3DAqwueQa5ylW4v/b8FQ96UcNqAy7Zig=; b=SU9fiQu13DQJZOMi+8iJuWJt6DsMC/L0EmNX8FEKwNEmtXZT4kocxm6k86z9Jq6of3 r6BbkrQLI6gESEMJuCU0eP8vdd6Q2TJFUBL2BrWtFlqEthyibUIouxXhdRf0x0zA1wCd 15r/r8lBICnaSi01HO0qIuu5QnH1z8/cRISwhHWztXxQrkxrWI1bmKm6Vbtb0FV3Elez 46BG/XWBVsJ1HSVvdWtjQWJoVaPurMGOmbhCMIUHdBB697QJzCJhHOdJD6JMbn4aYl/f 0sgAcqWGJKsSpUt/lnrXfV+I01KcmAuCDqJwO9sgmpy6FARF1h+9XUYk3VaYTWr4X8HF KiJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679183437; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3ZcMaYXilYF3DAqwueQa5ylW4v/b8FQ96UcNqAy7Zig=; b=Hbs7bKx+7PooPcdR4hyAXFnh+0ZttLUfByeONbIy1r7MJUGF5+xP4KolCYtMPMWUHp PghZGvn7CNnx+4tZ1geAkz3oS0MBIWgFvhE/bYRHU39/9HkP/SjwKpnKMHO7WbJPnaa+ jrZ1m5DL88pty09wkZGEYtQv5kDBp/HMIYl6qa6v+thW3u2PVeYRlQ9VYWp12xAODZ7I rpX2zaGlQGbFqC/nwXnvYajfmOMXp0eUkmtOxy6NPnF3ePThF/ub29gy9JwKC6n4VbXb TIWyYPt5mOouB0xVUtxd4kJgzVin71k5/710DJ2rTyWBh/JJ+5VqHulv1c68maMH9k0q WKcQ== X-Gm-Message-State: AO0yUKWZErPz6CHxLg2Vnk1uIfsksAnCH1zYIf+2KWumSp8Pwuhk3xGT /w7AbIwBWgp70USNLPkQTMMeXr5Xdik2eQ== X-Google-Smtp-Source: AK7set+SS/KSgk9KadmB7dNzdfLX0+JVrgqXsK8iL17OOnSFy2q99tVIZU/SMfsLdqm0W773KdEsZA== X-Received: by 2002:a2e:9113:0:b0:299:43c3:5a2b with SMTP id m19-20020a2e9113000000b0029943c35a2bmr3716718ljg.33.1679183436840; Sat, 18 Mar 2023 16:50:36 -0700 (PDT) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id v6-20020a2e9f46000000b0029c13f4d519sm162007ljk.119.2023.03.18.16.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Mar 2023 16:50:36 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Sun, 19 Mar 2023 02:50:30 +0300 Message-Id: <20230318235031.3793301-6-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230318235031.3793301-1-odivlad@gmail.com> References: <20230318235031.3793301-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn 5/6] ovn-ic: add unixctl commands to report db connection status X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" New unixctl commands were added: - nb-connection-status - sb-connection-status - ic-nb-connection-status - ic-sb-connection-status Signed-off-by: Vladislav Odintsov --- ic/ovn-ic.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ic/ovn-ic.c b/ic/ovn-ic.c index feb100859..6f31037ec 100644 --- a/ic/ovn-ic.c +++ b/ic/ovn-ic.c @@ -2091,6 +2091,15 @@ main(int argc, char *argv[]) &icsbrec_route_col_transit_switch, &icsbrec_route_col_availability_zone); + unixctl_command_register("nb-connection-status", "", 0, 0, + ovn_conn_show, ovnnb_idl_loop.idl); + unixctl_command_register("sb-connection-status", "", 0, 0, + ovn_conn_show, ovnsb_idl_loop.idl); + unixctl_command_register("ic-nb-connection-status", "", 0, 0, + ovn_conn_show, ovninb_idl_loop.idl); + unixctl_command_register("ic-sb-connection-status", "", 0, 0, + ovn_conn_show, ovnisb_idl_loop.idl); + /* Main loop. */ exiting = false; state.had_lock = false;