ofproto: Print "drop" action when dumping hidden flows
authorJustin Pettit <jpettit@nicira.com>
Thu, 21 Oct 2010 17:07:12 +0000 (10:07 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 26 Oct 2010 20:57:21 +0000 (13:57 -0700)
ofproto/ofproto.c

index ab5d476..ab9a835 100644 (file)
@@ -3346,6 +3346,8 @@ flow_stats_ds_cb(struct cls_rule *rule_, void *cbdata_)
     ofp_print_match(results, &match, true);
     if (act_len > 0) {
         ofp_print_actions(results, &rule->actions->header, act_len);
+    } else {
+        ds_put_cstr(results, "drop");
     }
     ds_put_cstr(results, "\n");
 }