Added small sleep after pushing each prefix flow mod so we don't overwhelm the switch
diff --git a/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java b/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java
index 37666b2..4aa70f1 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/bgproute/BgpRoute.java
@@ -572,8 +572,12 @@
try {
sw.write(msglist, null);
sw.flush();
+ Thread.sleep(0, 100000);
} catch (IOException e) {
log.error("Failure writing flow mod", e);
+ } catch (InterruptedException e) {
+ // TODO handle this properly
+ log.error("Interrupted", e);
}
}
}