From patchwork Fri Sep 4 17:46:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell Bryant X-Patchwork-Id: 514698 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (li376-54.members.linode.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id EA813140134 for ; Sat, 5 Sep 2015 03:46:39 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 0A74410B5C; Fri, 4 Sep 2015 10:46:39 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 8408710B56 for ; Fri, 4 Sep 2015 10:46:37 -0700 (PDT) Received: from bar2.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id CEC874202F6 for ; Fri, 4 Sep 2015 11:46:36 -0600 (MDT) X-ASG-Debug-ID: 1441388796-03dc5312225c0b0001-byXFYA Received: from mx1-pf1.cudamail.com ([192.168.24.1]) by bar2.cudamail.com with ESMTP id lxZa2afK1E525ObS (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 04 Sep 2015 11:46:36 -0600 (MDT) X-Barracuda-Envelope-From: rbryant@redhat.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.1 Received: from unknown (HELO mx1.redhat.com) (209.132.183.28) by mx1-pf1.cudamail.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 4 Sep 2015 17:46:35 -0000 Received-SPF: error (mx1-pf1.cudamail.com: error in processing during lookup of redhat.com: DNS problem) X-Barracuda-Apparent-Source-IP: 209.132.183.28 X-Barracuda-RBL-IP: 209.132.183.28 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 3CB8AC0B2B5A for ; Fri, 4 Sep 2015 17:46:34 +0000 (UTC) Received: from x1c.redhat.com (ovpn-112-75.phx2.redhat.com [10.3.112.75]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t84HkWRn016147; Fri, 4 Sep 2015 13:46:33 -0400 X-CudaMail-Envelope-Sender: rbryant@redhat.com From: Russell Bryant To: dev@openvswitch.org X-CudaMail-MID: CM-E1-903046900 X-CudaMail-DTE: 090415 X-CudaMail-Originating-IP: 209.132.183.28 Date: Fri, 4 Sep 2015 13:46:30 -0400 X-ASG-Orig-Subj: [##CM-E1-903046900##][PATCH] ovn: Document supported predicates. Message-Id: <1441388790-32041-1-git-send-email-rbryant@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-GBUdb-Analysis: 0, 209.132.183.28, Ugly c=0.297854 p=-0.222222 Source Normal X-MessageSniffer-Rules: 0-0-0-4435-c X-Barracuda-Connect: UNKNOWN[192.168.24.1] X-Barracuda-Start-Time: 1441388796 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using per-user scores of TAG_LEVEL=3.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=3.0 tests=BSF_SC5_MJ1963, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.22235 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 Subject: [ovs-dev] [PATCH] ovn: Document supported predicates. 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" ovn-sb(5) discussed that predicates are supported and described what they were. It did not list the predicates that are defined for OVN matches. This patch lists the supported predicates and what they expand to. Signed-off-by: Russell Bryant --- ovn/ovn-sb.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ovn/ovn-sb.xml b/ovn/ovn-sb.xml index 8102eb3..b6b3fef 100644 --- a/ovn/ovn-sb.xml +++ b/ovn/ovn-sb.xml @@ -690,6 +690,27 @@
  • nd.target nd.sll nd.tll
  • +

    + The following predicates are supported: +

    + +
      +
    • vlan.present expands to vlan.tci[12]
    • +
    • ip4 expands to eth.type == 0x800
    • +
    • ip6 expands to eth.type == 0x86dd
    • +
    • ip expands to ip4 || ip6
    • +
    • icmp4 expands to ip4 && ip.proto == 1
    • +
    • icmp6 expands to ip6 && ip.proto == 58
    • +
    • icmp expands to icmp4 || icmp6
    • +
    • ip.is_frag expands to ip.frag[0]
    • +
    • ip.later_frag expands to ip.frag[1]
    • +
    • ip.first_frag expands to ip.is_frag && !ip.later_frag
    • +
    • arp expands to eth.type == 0x806
    • +
    • nd expands to icmp6.type == {135, 136} && icmp6.code == 0
    • +
    • tcp expands to ip.proto == 6
    • +
    • udp expands to ip.proto == 17
    • +
    • sctp expands to ip.proto == 132
    • +