summaryrefslogtreecommitdiff
path: root/Documentation/tutorials
diff options
context:
space:
mode:
authorLIU Yulong <i@liuyulong.me>2019-04-09 15:48:08 +0800
committerBen Pfaff <blp@ovn.org>2019-04-12 15:26:13 -0700
commitda49e81b35ce8b0f8fc9029d208bd6ab2eb61119 (patch)
treef7138ccebe57e926400124d58273d4a6440508d5 /Documentation/tutorials
parent74286173f4d7f51f78e9db09b07a6d4d65263252 (diff)
downloadopenvswitch-da49e81b35ce8b0f8fc9029d208bd6ab2eb61119.tar.gz
Docs: fix conntrack flow ct_state input
In the following envrionment: ovs-vsctl (Open vSwitch) 2.11.0 DB Schema 7.16.1 we meet the following error during the tutorials conntrack test: "ovs-ofctl: field +est missing value" "ovs-ofctl: field +trk missing value" ovs-vsctl 2.9.0 has the same issue. This patch gives the tutorials with right conntrack input. Signed-off-by: LIU Yulong <i@liuyulong.me>
Diffstat (limited to 'Documentation/tutorials')
-rw-r--r--Documentation/tutorials/ovs-conntrack.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/tutorials/ovs-conntrack.rst b/Documentation/tutorials/ovs-conntrack.rst
index ac5ca9a07..27d6e04c3 100644
--- a/Documentation/tutorials/ovs-conntrack.rst
+++ b/Documentation/tutorials/ovs-conntrack.rst
@@ -325,7 +325,7 @@ Next, we add a flow to match on the packet coming back from conntrack::
(flow #2)
$ ovs-ofctl add-flow br0 \
- "table=0, priority=50, ct_state=+trk,+new, tcp, in_port=veth_l0, actions=ct(commit),veth_r0"
+ "table=0, priority=50, ct_state=+trk+new, tcp, in_port=veth_l0, actions=ct(commit),veth_r0"
Now that the packet is coming back from conntrack, the ct_state would have
the "trk" set.
@@ -364,7 +364,7 @@ following flows at OVS::
"table=0, priority=50, ct_state=-trk, tcp, in_port=veth_r0, actions=ct(table=0)"
(flow #4)
$ ovs-ofctl add-flow br0 \
- "table=0, priority=50, ct_state=+trk,+est, tcp, in_port=veth_r0, actions=veth_l0"
+ "table=0, priority=50, ct_state=+trk+est, tcp, in_port=veth_r0, actions=veth_l0"
flow #3 matches untracked packets coming back from server (10.0.0.2) and sends
@@ -400,7 +400,7 @@ match on the packet::
(flow #5)
$ ovs-ofctl add-flow br0 \
- "table=0, priority=50, ct_state=+trk,+est, tcp, in_port=veth_l0, actions=veth_r0"
+ "table=0, priority=50, ct_state=+trk+est, tcp, in_port=veth_l0, actions=veth_r0"
Send the third TCP ack segment using scapy (at the "left" scapy session)
(flags=0x10 is ack)::
@@ -557,7 +557,7 @@ Flows
(flow #2)
$ ovs-ofctl add-flow br0 \
- "table=0, priority=50, ct_state=+trk,+new, tcp, in_port=veth_l0, actions=ct(commit),veth_r0"
+ "table=0, priority=50, ct_state=+trk+new, tcp, in_port=veth_l0, actions=ct(commit),veth_r0"
(flow #3)
$ ovs-ofctl add-flow br0 \
@@ -565,8 +565,8 @@ Flows
(flow #4)
$ ovs-ofctl add-flow br0 \
- "table=0, priority=50, ct_state=+trk,+est, tcp, in_port=veth_r0, actions=veth_l0"
+ "table=0, priority=50, ct_state=+trk+est, tcp, in_port=veth_r0, actions=veth_l0"
(flow #5)
$ ovs-ofctl add-flow br0 \
- "table=0, priority=50, ct_state=+trk,+est, tcp, in_port=veth_l0, actions=veth_r0"
+ "table=0, priority=50, ct_state=+trk+est, tcp, in_port=veth_l0, actions=veth_r0"