From patchwork Wed Sep 13 07:35:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy Redaelli X-Patchwork-Id: 813201 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xsYPk58wWz9sPs for ; Wed, 13 Sep 2017 17:36:26 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id BB12CB3F; Wed, 13 Sep 2017 07:35:47 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id C75E2B1D for ; Wed, 13 Sep 2017 07:35:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 7C0B1113 for ; Wed, 13 Sep 2017 07:35:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E8D344E047 for ; Wed, 13 Sep 2017 07:35:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E8D344E047 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=tredaelli@redhat.com Received: from graphite.redhat.com (ovpn-116-78.ams2.redhat.com [10.36.116.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6879618AD3 for ; Wed, 13 Sep 2017 07:35:43 +0000 (UTC) From: Timothy Redaelli To: dev@openvswitch.org Date: Wed, 13 Sep 2017 09:35:33 +0200 Message-Id: <4115e5eb3d22f44367dc768f191b2bf057875915.1504871394.git.tredaelli@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 13 Sep 2017 07:35:44 +0000 (UTC) X-Spam-Status: No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v4 1/2] ovs-ctl: Add delete-transient-ports command X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Add a command to delete all ports that have the other_config:transient value set to true. Acked-by: Aaron Conole Signed-off-by: Timothy Redaelli --- utilities/ovs-ctl.8 | 6 ++++++ utilities/ovs-ctl.in | 24 ++++++++++++++---------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/utilities/ovs-ctl.8 b/utilities/ovs-ctl.8 index 84fa33fff..e25223c78 100644 --- a/utilities/ovs-ctl.8 +++ b/utilities/ovs-ctl.8 @@ -44,6 +44,8 @@ ovs\-ctl \- OVS startup helper script [\fB\-\-dport=\fIdport\fR] \fBenable\-protocol\fR .br +\fBovs\-ctl delete\-transient\-ports +.br \fBovs\-ctl help \fR| \fB\-h \fR| \fB\-\-help .br \fBovs\-ctl \-\-version @@ -412,6 +414,10 @@ TCP or UDP source or destination port to match. These are optional and allowed only with \fB\-\-protocol=tcp\fR or \fB\-\-protocol=udp\fR. . +.SH "The ``delete\-transient\-ports'' command" +. +Deletes all ports that have the \fBother_config:transient\fR value set to true. +. .SH "The ``help'' command" . Prints a usage message and exits successfully. diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index dc1d02c9c..ff39874e0 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -553,16 +553,17 @@ This program is intended to be invoked internally by Open vSwitch startup scripts. System administrators should not normally invoke it directly. Commands: - start start Open vSwitch daemons - stop stop Open vSwitch daemons - restart stop and start Open vSwitch daemons - status check whether Open vSwitch daemons are running - version print versions of Open vSwitch daemons - load-kmod insert modules if not already present - force-reload-kmod save OVS network device state, stop OVS, unload kernel - module, reload kernel module, start OVS, restore state - enable-protocol enable protocol specified in options with iptables - help display this help message + start start Open vSwitch daemons + stop stop Open vSwitch daemons + restart stop and start Open vSwitch daemons + status check whether Open vSwitch daemons are running + version print versions of Open vSwitch daemons + load-kmod insert modules if not already present + force-reload-kmod save OVS network device state, stop OVS, unload kernel + module, reload kernel module, start OVS, restore state + enable-protocol enable protocol specified in options with iptables + delete-transient-ports delete transient (other_config:transient=true) ports + help display this help message One of the following options is required for "start", "restart" and "force-reload-kmod": --system-id=UUID set specific ID to uniquely identify this system @@ -725,6 +726,9 @@ case $command in enable-protocol) enable_protocol ;; + delete-transient-ports) + del_transient_ports + ;; help) usage ;;