From patchwork Wed Jul 12 13:12:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Angel Ajo X-Patchwork-Id: 787222 X-Patchwork-Delegate: rbryant@redhat.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3x6zrL6rLYz9rxm for ; Wed, 12 Jul 2017 23:12:18 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 41A298E2; Wed, 12 Jul 2017 13:12:17 +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 7616941C for ; Wed, 12 Jul 2017 13:12:16 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 96352108 for ; Wed, 12 Jul 2017 13:12:15 +0000 (UTC) Received: by mail-wr0-f177.google.com with SMTP id c11so33119658wrc.3 for ; Wed, 12 Jul 2017 06:12:15 -0700 (PDT) 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; bh=0ZQyT+FLNW0kgOQyDE7ruGp2FgSAjFrtJP4lH2iiq50=; b=nX1XNdvVBl/mir1kLcxDcIKiA8FaIIptiXhBL4MbRw5pPpp//lCQOX27zjc+7N7t+E nIFtupeoKhzp091iy45EqERK/61egj5S5h6/fZmO2HJ1vk06pSN0vDKiIXQPXTdnZKMC 2qSc8DTPU4j/eQB/JKqj1Hl16QiB/q4PLrk+T7hr7yQd5vJ4gHc3CChFl5U94/5gNzN5 j4fWU0XllSov6m4PhXYzhnPSahPvKa2dTCwjMh9nxb/sY1PdM+UACrpWab+1UaWk32vX MpaaFPb2TN1JG87BJEXw5xKgV21xr8bFMCio1a0oCdhetIGKQAi8j9xqct1AK6L7JDMV y9Bg== X-Gm-Message-State: AIVw112OeRDSy0/AzxUNMCHvTGV3VB9CQkFbatg+kwe7tHmzEta4OeJg z0oxBh7JCySDhr4rPxS2KQ== X-Received: by 10.223.152.240 with SMTP id w103mr3008467wrb.64.1499865134097; Wed, 12 Jul 2017 06:12:14 -0700 (PDT) Received: from ctl.localdomain (111.148.134.37.dynamic.jazztel.es. [37.134.148.111]) by smtp.gmail.com with ESMTPSA id 35sm1453233wrp.63.2017.07.12.06.12.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2017 06:12:13 -0700 (PDT) From: Miguel Angel Ajo To: dev@openvswitch.org Date: Wed, 12 Jul 2017 13:12:04 +0000 Message-Id: <1499865130-31404-1-git-send-email-majopela@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1496930708-15441-1-git-send-email-majopela@redhat.com> References: <1496930708-15441-1-git-send-email-majopela@redhat.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Miguel Angel Ajo Subject: [ovs-dev] [PATCH v4 1/7] ovn: l3ha, add extra check on distributed gateway ports 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 Check that removing the options:redirect-chassis in NBDB is going to remove the cr-${port} in the SBDB. This is introduced to avoid any regression of this behaviour on the l3ha series. Signed-off-by: Miguel Angel Ajo --- tests/ovn.at | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/ovn.at b/tests/ovn.at index efcbd91..f3e6b4b 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -7142,6 +7142,14 @@ expected=${dst_mac}${src_mac}08004500001c000000003f110100${src_ip}${dst_ip}00351 echo $expected >> hv2-vif1.expected OVN_CHECK_PACKETS([hv2/vif1-tx.pcap], [hv2-vif1.expected]) +AT_CHECK([ovn-sbctl --bare --columns _uuid find Port_Binding logical_port=cr-alice | wc --lines], [0], [1 +]) + +ovn-nbctl remove Logical_Router_Port alice options redirect-chassis + +AT_CHECK([ovn-sbctl find Port_Binding logical_port=cr-alice | wc --lines], [0], [0 +]) + OVN_CLEANUP([hv1],[hv2],[hv3]) AT_CLEANUP