* problems and amount of processing, we decided to hold off for
* the time-being.
*
- * - Multiple Controllers. There is nothing intrinsic in the high-
- * level design that prevents using multiple (known) controllers,
- * however, the current implementation's data structures assume
- * only one.
- *
* - Differing Controllers for Switches. All switches must know
* the L3 addresses for all the controllers that other switches
* may use, since rules need to be set up to allow traffic related
in_band_run(struct in_band *ib)
{
struct in_band_remote *r;
+ bool local_change, remote_change;
- if (!refresh_local(ib) && !refresh_remotes(ib)) {
+ local_change = refresh_local(ib);
+ remote_change = refresh_remotes(ib);
+ if (!local_change && !remote_change) {
/* Nothing changed, nothing to do. */
return;
}
}
}
+/* 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