From patchwork Mon Mar 13 16:43:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timothy Redaelli X-Patchwork-Id: 738283 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 3vhkGM1Sjnz9s0Z for ; Tue, 14 Mar 2017 03:43:54 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 265A5C2B; Mon, 13 Mar 2017 16:43:51 +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 EE91EBD6 for ; Mon, 13 Mar 2017 16:43:49 +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 8C5B718B for ; Mon, 13 Mar 2017 16:43:49 +0000 (UTC) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0D8A435F215 for ; Mon, 13 Mar 2017 16:43:50 +0000 (UTC) Received: from graphite.mxp.redhat.com (dhcp-176-62.mxp.redhat.com [10.32.176.62]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v2DGhmIt013428; Mon, 13 Mar 2017 12:43:49 -0400 From: Timothy Redaelli To: dev@openvswitch.org Date: Mon, 13 Mar 2017 17:43:45 +0100 Message-Id: X-Mailer: git-send-email 2.9.3 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 13 Mar 2017 16:43:50 +0000 (UTC) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v2] ofproto: Add some examples for 'ofproto/trace' in ovs-vswitchd man page 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 Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1339097 Signed-off-by: Timothy Redaelli --- Changes in v2: - Don't use mask, but use an example MAC address for dl_dst ofproto/ofproto-unixctl.man | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/ofproto/ofproto-unixctl.man b/ofproto/ofproto-unixctl.man index ce4f7a2..4238373 100644 --- a/ofproto/ofproto-unixctl.man +++ b/ofproto/ofproto-unixctl.man @@ -135,3 +135,39 @@ necessary because the command does not ordinarily imply a particular OpenFlow version. One exception is that, when \fIactions\fR includes an action that only OpenFlow 1.1 and later supports (such as \fBpush_vlan\fR), \fB\-consistent\fR is automatically enabled. +. +.IP "Usage examples:" +.RS 4 +.PP +\fBTrace an unicast ICMP echo request on ingress port 1 to destination MAC +00:00:5E:00:53:01\fR +.RS 4 +.nf +ofproto/trace br in_port=1,icmp,icmp_type=8,\\ +dl_dst=00:00:5E:00:53:01 +.RE +.fi +.PP +\fBTrace an unicast ICMP echo reply on ingress port 1 to destination MAC +00:00:5E:00:53:01\fR +.RS 4 +.nf +ofproto/trace br in_port=1,icmp,icmp_type=0,\\ +dl_dst=00:00:5E:00:53:01 +.fi +.RE +.PP +\fBTrace an ARP request on ingress port 1\fR +.RS 4 +.nf +ofproto/trace br in_port=1,arp,arp_op=1 +.fi +.RE +.PP +\fBTrace an ARP reply on ingress port 1\fR +.RS 4 +.nf +ofproto/trace br in_port=1,arp,arp_op=2 +.fi +.RE +.RE