]> git.proxmox.com Git - ovs.git/commitdiff
FAQ: Add another question about do-nothing flows.
authorBen Pfaff <blp@ovn.org>
Mon, 6 Mar 2017 16:10:59 +0000 (08:10 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 6 Mar 2017 18:16:36 +0000 (10:16 -0800)
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Gurucharan Shetty <guru@ovn.org>
Documentation/faq/openflow.rst

index 529e3f50aadf0df8864784cda5ef411bf05beb01..376e64eb4482b17f344a3252b720f2f7958eb4d3 100644 (file)
@@ -496,6 +496,27 @@ but the packets are actually being output in VLAN 123.  Why?
 
         $ ovs-ofctl add-flow br0 dl_vlan=123,actions=mod_vlan_vid:456,output:1
 
+    See also the following question.
+
+Q: I added a flow to a redirect packets for TCP port 80 to port 443,
+like so::
+
+    $ ovs-ofctl add-flow br0 tcp,tcp_dst=123,actions=mod_tp_dst:443
+
+but the packets are getting dropped instead.  Why?
+
+    A: This set of actions does change the TCP destination port to 443, but
+    then it does nothing more.  It doesn't, for example, say to continue to
+    another flow table or to output the packet.  Therefore, the packet is
+    dropped.
+
+    To solve the problem, add an action that does something with the modified
+    packet.  For example::
+
+        $ ovs-ofctl add-flow br0 tcp,tcp_dst=123,actions=mod_tp_dst:443,normal
+
+    See also the preceding question.
+
 Q: The "learn" action can't learn the action I want, can you improve it?
 
     A: By itself, the "learn" action can only put two kinds of actions into the