X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-unixctl.man;h=5ae90f22f451e8c9f941e7769b098902c156a415;hb=3096dfb4112e422eac47a4afb55807f9c04bd553;hp=be6f002b4aadac222127874907b55c11f3f34d5b;hpb=dc29f566c17913652984824ce54887fc7903c08d;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-unixctl.man b/ofproto/ofproto-unixctl.man index be6f002b4..5ae90f22f 100644 --- a/ofproto/ofproto-unixctl.man +++ b/ofproto/ofproto-unixctl.man @@ -1,16 +1,20 @@ .SS "OFPROTO COMMANDS" These commands manage the core OpenFlow switch implementation (called \fBofproto\fR). +. .IP "\fBofproto/list\fR" Lists the names of the running ofproto instances. These are the names that may be used on \fBofproto/trace\fR. -.IP "\fBofproto/trace \fIswitch tun_id in_port packet\fR" -Traces the path of an imaginary packet through \fIswitch\fR. The -arguments are: +. +.IP "\fBofproto/trace \fIswitch priority tun_id in_port packet\fR" +.IQ "\fBofproto/trace \fIswitch odp_flow \fB\-generate\fR" +Traces the path of an imaginary packet through \fIswitch\fR. Both +forms require \fIswitch\fR, the switch on which the packet arrived +(one of those listed by \fBofproto/list\fR). The first form specifies +a packet's contents explicitly: .RS -.IP "\fIswitch\fR" -The switch on which the packet arrived (one of those listed by -\fBofproto/list\fR). +.IP "\fIpriority\fR" +Packet QoS priority. Use \fB0\fR if QoS is not setup. .IP "\fItun_id\fR" The tunnel ID on which the packet arrived. Use \fB0\fR if the packet did not arrive through a tunnel. @@ -24,6 +28,39 @@ hex digits. Obviously, it is inconvenient to type in the hex digits by hand, so the \fBovs\-pcap\fR(1) and \fBovs\-tcpundump\fR(1) utilities provide easier ways. .RE +.IP +The second form specifies the packet's contents implicitly: +.RS +.IP "\fIodp_flow\fR" +A flow in the form printed by \fBovs\-dpctl\fR(8)'s \fBdump\-flows\fR +command. This is not an OpenFlow flow: besides other differences, it +never contains wildcards. \fB\*(PN\fR generates an arbitrary packet +that has the specified \fIodp_flow\fR. +.RE +.IP \fB\*(PN\fR will respond with extensive information on how the packet would be handled if it were to be received. The packet will not -actually be sent. +actually be sent, but side effects such as MAC learning will occur. +. +.IP "\fBofproto/trace \fIswitch odp_flow\fR" +Traces the path of a packet in an imaginary flow through +\fIswitch\fR. The arguments are: +.RS +.IP "\fIswitch\fR" +The switch on which the packet arrived (one of those listed by +\fBofproto/list\fR). +.IP "\fIodp_flow\fR" +A flow in the form printed by \fBovs\-dpctl\fR(8)'s \fBdump\-flows\fR +command. This is not an OpenFlow flow: besides other differences, it +never contains wildcards. +.RE +.IP +\fB\*(PN\fR will respond with extensive information on how a packet +in \fIodp_flow\fR would be handled if it were received by +\fIswitch\fR. No packet will actually be sent. Some side effects may +occur, but MAC learning in particular will not. +.IP +This form of \fBofproto/trace\fR cannot determine the complete set of +datapath actions in some corner cases. If the results say that this +is the case, rerun \fBofproto/trace\fR supplying a packet in the flow +to get complete results.