{"id":813201,"url":"http://patchwork.ozlabs.org/api/patches/813201/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/patch/4115e5eb3d22f44367dc768f191b2bf057875915.1504871394.git.tredaelli@redhat.com/","project":{"id":47,"url":"http://patchwork.ozlabs.org/api/projects/47/?format=json","name":"Open vSwitch","link_name":"openvswitch","list_id":"ovs-dev.openvswitch.org","list_email":"ovs-dev@openvswitch.org","web_url":"http://openvswitch.org/","scm_url":"git@github.com:openvswitch/ovs.git","webscm_url":"https://github.com/openvswitch/ovs","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<4115e5eb3d22f44367dc768f191b2bf057875915.1504871394.git.tredaelli@redhat.com>","list_archive_url":null,"date":"2017-09-13T07:35:33","name":"[ovs-dev,v4,1/2] ovs-ctl: Add delete-transient-ports command","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"d61e3558390f05ef99939e27c01eeab5eef0cb74","submitter":{"id":70949,"url":"http://patchwork.ozlabs.org/api/people/70949/?format=json","name":"Timothy Redaelli","email":"tredaelli@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/openvswitch/patch/4115e5eb3d22f44367dc768f191b2bf057875915.1504871394.git.tredaelli@redhat.com/mbox/","series":[{"id":2823,"url":"http://patchwork.ozlabs.org/api/series/2823/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/list/?series=2823","date":"2017-09-13T07:35:32","name":"Add system service to delete transient ports on boot.","version":4,"mbox":"http://patchwork.ozlabs.org/series/2823/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813201/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813201/checks/","tags":{},"related":[],"headers":{"Return-Path":"<ovs-dev-bounces@openvswitch.org>","X-Original-To":["incoming@patchwork.ozlabs.org","dev@openvswitch.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","ovs-dev@mail.linuxfoundation.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=openvswitch.org\n\t(client-ip=140.211.169.12; helo=mail.linuxfoundation.org;\n\tenvelope-from=ovs-dev-bounces@openvswitch.org;\n\treceiver=<UNKNOWN>)","ext-mx09.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx09.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=tredaelli@redhat.com"],"Received":["from mail.linuxfoundation.org (mail.linuxfoundation.org\n\t[140.211.169.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsYPk58wWz9sPs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 17:36:26 +1000 (AEST)","from mail.linux-foundation.org (localhost [127.0.0.1])\n\tby mail.linuxfoundation.org (Postfix) with ESMTP id BB12CB3F;\n\tWed, 13 Sep 2017 07:35:47 +0000 (UTC)","from smtp1.linuxfoundation.org (smtp1.linux-foundation.org\n\t[172.17.192.35])\n\tby mail.linuxfoundation.org (Postfix) with ESMTPS id C75E2B1D\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:44 +0000 (UTC)","from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby smtp1.linuxfoundation.org (Postfix) with ESMTPS id 7C0B1113\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:44 +0000 (UTC)","from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id E8D344E047\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:43 +0000 (UTC)","from graphite.redhat.com (ovpn-116-78.ams2.redhat.com\n\t[10.36.116.78])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 6879618AD3\n\tfor <dev@openvswitch.org>; Wed, 13 Sep 2017 07:35:43 +0000 (UTC)"],"X-Greylist":["domain auto-whitelisted by SQLgrey-1.7.6","Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.38]);\n\tWed, 13 Sep 2017 07:35:44 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com E8D344E047","From":"Timothy Redaelli <tredaelli@redhat.com>","To":"dev@openvswitch.org","Date":"Wed, 13 Sep 2017 09:35:33 +0200","Message-Id":"<4115e5eb3d22f44367dc768f191b2bf057875915.1504871394.git.tredaelli@redhat.com>","In-Reply-To":"<cover.1504871394.git.tredaelli@redhat.com>","References":"<cover.1504871394.git.tredaelli@redhat.com>","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.11","X-Spam-Status":"No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,\n\tRP_MATCHES_RCVD autolearn=disabled version=3.3.1","X-Spam-Checker-Version":"SpamAssassin 3.3.1 (2010-03-16) on\n\tsmtp1.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":"<ovs-dev.openvswitch.org>","List-Unsubscribe":"<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>","List-Archive":"<http://mail.openvswitch.org/pipermail/ovs-dev/>","List-Post":"<mailto:ovs-dev@openvswitch.org>","List-Help":"<mailto:ovs-dev-request@openvswitch.org?subject=help>","List-Subscribe":"<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"ovs-dev-bounces@openvswitch.org","Errors-To":"ovs-dev-bounces@openvswitch.org"},"content":"Add a command to delete all ports that have the other_config:transient value\nset to true.\n\nAcked-by: Aaron Conole <aconole@redhat.com>\nSigned-off-by: Timothy Redaelli <tredaelli@redhat.com>\n---\n utilities/ovs-ctl.8  |  6 ++++++\n utilities/ovs-ctl.in | 24 ++++++++++++++----------\n 2 files changed, 20 insertions(+), 10 deletions(-)","diff":"diff --git a/utilities/ovs-ctl.8 b/utilities/ovs-ctl.8\nindex 84fa33fff..e25223c78 100644\n--- a/utilities/ovs-ctl.8\n+++ b/utilities/ovs-ctl.8\n@@ -44,6 +44,8 @@ ovs\\-ctl \\- OVS startup helper script\n [\\fB\\-\\-dport=\\fIdport\\fR]\n \\fBenable\\-protocol\\fR\n .br\n+\\fBovs\\-ctl delete\\-transient\\-ports\n+.br\n \\fBovs\\-ctl help \\fR| \\fB\\-h \\fR| \\fB\\-\\-help\n .br\n \\fBovs\\-ctl \\-\\-version\n@@ -412,6 +414,10 @@ TCP or UDP source or destination port to match.  These are optional\n and allowed only with \\fB\\-\\-protocol=tcp\\fR or\n \\fB\\-\\-protocol=udp\\fR.\n .\n+.SH \"The ``delete\\-transient\\-ports'' command\"\n+.\n+Deletes all ports that have the \\fBother_config:transient\\fR value set to true.\n+.\n .SH \"The ``help'' command\"\n .\n Prints a usage message and exits successfully.\ndiff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in\nindex dc1d02c9c..ff39874e0 100755\n--- a/utilities/ovs-ctl.in\n+++ b/utilities/ovs-ctl.in\n@@ -553,16 +553,17 @@ This program is intended to be invoked internally by Open vSwitch startup\n scripts.  System administrators should not normally invoke it directly.\n \n Commands:\n-  start              start Open vSwitch daemons\n-  stop               stop Open vSwitch daemons\n-  restart            stop and start Open vSwitch daemons\n-  status             check whether Open vSwitch daemons are running\n-  version            print versions of Open vSwitch daemons\n-  load-kmod          insert modules if not already present\n-  force-reload-kmod  save OVS network device state, stop OVS, unload kernel\n-                     module, reload kernel module, start OVS, restore state\n-  enable-protocol    enable protocol specified in options with iptables\n-  help               display this help message\n+  start                   start Open vSwitch daemons\n+  stop                    stop Open vSwitch daemons\n+  restart                 stop and start Open vSwitch daemons\n+  status                  check whether Open vSwitch daemons are running\n+  version                 print versions of Open vSwitch daemons\n+  load-kmod               insert modules if not already present\n+  force-reload-kmod       save OVS network device state, stop OVS, unload kernel\n+                          module, reload kernel module, start OVS, restore state\n+  enable-protocol         enable protocol specified in options with iptables\n+  delete-transient-ports  delete transient (other_config:transient=true) ports\n+  help                    display this help message\n \n One of the following options is required for \"start\", \"restart\" and \"force-reload-kmod\":\n   --system-id=UUID   set specific ID to uniquely identify this system\n@@ -725,6 +726,9 @@ case $command in\n     enable-protocol)\n         enable_protocol\n         ;;\n+    delete-transient-ports)\n+        del_transient_ports\n+        ;;\n     help)\n         usage\n         ;;\n","prefixes":["ovs-dev","v4","1/2"]}