commit | be5c24cd2a766aa934d3d8caa4fb78ce1c75bc0a | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Thu Dec 10 22:26:35 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Dec 11 15:52:15 2015 +0000 |
tree | 2b2d8d64c2d941d61e4b4f4a183cb4c163b6ab86 | |
parent | 58174e45a0d0e510e481dee5de66a25e2b16eb11 [diff] |
Check doNotFlushFlows flag in initilizeFlowRules Change-Id: I7ce74d5194a1d20f55af11749f11f9983308bb71
diff --git a/apps/openstackswitching/app/src/main/java/org/onosproject/openstackswitching/OpenstackSwitchingManager.java b/apps/openstackswitching/app/src/main/java/org/onosproject/openstackswitching/OpenstackSwitchingManager.java index 3d81703..5635f7b 100644 --- a/apps/openstackswitching/app/src/main/java/org/onosproject/openstackswitching/OpenstackSwitchingManager.java +++ b/apps/openstackswitching/app/src/main/java/org/onosproject/openstackswitching/OpenstackSwitchingManager.java
@@ -278,7 +278,9 @@ .forEach(vmPort -> { OpenstackPort osPort = rulePopulator.openstackPort(vmPort); if (osPort != null) { - rulePopulator.populateSwitchingRules(device, vmPort); + if (!doNotPushFlows) { + rulePopulator.populateSwitchingRules(device, vmPort); + } registerDhcpInfo(osPort); } else { log.warn("No openstackPort information for port {}", vmPort);