[ovs-dev] [PATCH] FAQ: Explain how to drop packets.

Ben Pfaff blp at nicira.com
Tue Apr 23 04:15:51 UTC 2013


This question keeps coming up.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 FAQ |   20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/FAQ b/FAQ
index 7488112..dcc61f2 100644
--- a/FAQ
+++ b/FAQ
@@ -832,8 +832,8 @@ A: Do you have a controller configured on br0 (as the commands above
    can refer to the answer there for more information.
 
 
-Controllers
------------
+Using OpenFlow (Manually or Via Controller)
+-------------------------------------------
 
 Q: What versions of OpenFlow does Open vSwitch support?
 
@@ -1094,6 +1094,22 @@ A: To debug network behavior problems, trace the path of a packet,
    problem.  If not, then follow the ARP reply back to the origin, in
    reverse.
 
+Q: How do I make a flow drop packets?
+
+A: An empty set of actions causes a packet to be dropped.  You can
+   specify an empty set of actions with "actions=" on the ovs-ofctl
+   command line.  For example:
+
+       ovs-ofctl add-flow br0 priority=65535,actions=
+
+   would cause every packet entering switch br0 to be dropped.
+
+   You can write "drop" explicitly if you like.  The effect is the
+   same.  Thus, the following command also causes every packet
+   entering switch br0 to be dropped:
+
+       ovs-ofctl add-flow br0 priority=65535,actions=drop
+
 Contact 
 -------
 
-- 
1.7.10.4




More information about the dev mailing list