in-band: Really reinstall in-band rules in in_band_flushed().
authorBen Pfaff <blp@nicira.com>
Tue, 20 Apr 2010 20:39:35 +0000 (13:39 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Apr 2010 20:39:35 +0000 (13:39 -0700)
ofproto/in-band.c

index aa522de..85cc034 100644 (file)
@@ -740,10 +740,12 @@ in_band_wait(struct in_band *in_band)
     }
 }
 
+/* ofproto has flushed all flows from the flow table and it is calling us back
+ * to allow us to reinstall the ones that are important to us. */
 void
 in_band_flushed(struct in_band *in_band)
 {
-    clear_rules(in_band);
+    add_rules(in_band);
 }
 
 int