From patchwork Thu Oct 6 01:26:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 678683 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3sqFPP0gC2z9s2Q for ; Thu, 6 Oct 2016 12:27:05 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 70CD0107D6; Wed, 5 Oct 2016 18:26:59 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e4.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 6A81D10771 for ; Wed, 5 Oct 2016 18:26:57 -0700 (PDT) Received: from bar5.cudamail.com (unknown [192.168.21.12]) by mx1e4.cudamail.com (Postfix) with ESMTPS id DBC1C1E076F for ; Wed, 5 Oct 2016 19:26:56 -0600 (MDT) X-ASG-Debug-ID: 1475717216-09eadd0cb152830001-byXFYA Received: from mx3-pf3.cudamail.com ([192.168.14.3]) by bar5.cudamail.com with ESMTP id yA3czrdqnefC3fEw (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 05 Oct 2016 19:26:56 -0600 (MDT) X-Barracuda-Envelope-From: blp@ovn.org X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.3 Received: from unknown (HELO relay2-d.mail.gandi.net) (217.70.183.194) by mx3-pf3.cudamail.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 6 Oct 2016 01:26:56 -0000 Received-SPF: pass (mx3-pf3.cudamail.com: SPF record at ovn.org designates 217.70.183.194 as permitted sender) X-Barracuda-Apparent-Source-IP: 217.70.183.194 X-Barracuda-RBL-IP: 217.70.183.194 Received: from mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.140]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 8E9C6C5A5A; Thu, 6 Oct 2016 03:26:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter2-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter2-d.gandi.net (mfilter2-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id wIW1rXbEe6_h; Thu, 6 Oct 2016 03:26:53 +0200 (CEST) X-Originating-IP: 173.228.112.90 Received: from sigabrt.gateway.sonic.net (173-228-112-90.dsl.dynamic.fusionbroadband.com [173.228.112.90]) (Authenticated sender: blp@ovn.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 6BDEAC5A56; Thu, 6 Oct 2016 03:26:52 +0200 (CEST) X-CudaMail-Envelope-Sender: blp@ovn.org From: Ben Pfaff To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-V3-1004062241 X-CudaMail-DTE: 100516 X-CudaMail-Originating-IP: 217.70.183.194 Date: Wed, 5 Oct 2016 18:26:47 -0700 X-ASG-Orig-Subj: [##CM-V3-1004062241##][PATCH 2/7] ovn: Fix bugs in port security test. Message-Id: <1475717212-27467-2-git-send-email-blp@ovn.org> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1475717212-27467-1-git-send-email-blp@ovn.org> References: <1475717212-27467-1-git-send-email-blp@ovn.org> X-Barracuda-Connect: UNKNOWN[192.168.14.3] X-Barracuda-Start-Time: 1475717216 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH 2/7] ovn: Fix bugs in port security test. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" A number of instances of "{i}" in this test should have been "${i}". Signed-off-by: Ben Pfaff Acked-by: Gurucharan Shetty --- tests/ovn.at | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index 05e1349..4214a00 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -2626,13 +2626,13 @@ sip=`ip_to_hex 192 168 0 13` tip=`ip_to_hex 192 168 0 23` test_ip 13 f00000000113 f00000000023 $sip $tip -# ipv6 packet should be received by lp[123]3 with mac f0000000{i}{i}3 -# and ip6.dst as fe80::ea2a:eaff:fe28:0{i}{i}3. +# ipv6 packet should be received by lp[123]3 with mac f00000000${i}${i}3 +# and ip6.dst as fe80::ea2a:eaff:fe28:0${i}${i}3. # lp11 can send ipv6 traffic as there is no port security sip=ee800000000000000000000000000000 for i in 1 2 3; do - tip=fe80000000000000ea2aeafffe2800{i}3 - test_ipv6 11 f00000000011 f000000000{i}${i}3 $sip $tip {i}3 + tip=fe80000000000000ea2aeafffe2800${i}3 + test_ipv6 11 f00000000011 f00000000${i}${i}3 $sip $tip ${i}3 done @@ -2645,8 +2645,8 @@ sip=ee800000000000000000000000000000 tip=fe80000000000000ea2aeafffe280023 test_ipv6 11 f00000000011 f00000000333 $sip $tip -# ipv6 packet should be allowed for lp[123]3 with mac f0000000{i}{i}3 -# and ip6.src fe80::ea2a:eaff:fe28:0{i}{i}3 and ip6.src ::. +# ipv6 packet should be allowed for lp[123]3 with mac f0000000${i}${i}3 +# and ip6.src fe80::ea2a:eaff:fe28:0${i}${i}3 and ip6.src ::. # and should be dropped for any other ip6.src # lp21 can receive ipv6 traffic as there is no port security