Hyunsun Moon
Committed by Gerrit Code Review

Check doNotFlushFlows flag in initilizeFlowRules

Change-Id: I7ce74d5194a1d20f55af11749f11f9983308bb71
...@@ -278,7 +278,9 @@ public class OpenstackSwitchingManager implements OpenstackSwitchingService { ...@@ -278,7 +278,9 @@ public class OpenstackSwitchingManager implements OpenstackSwitchingService {
278 .forEach(vmPort -> { 278 .forEach(vmPort -> {
279 OpenstackPort osPort = rulePopulator.openstackPort(vmPort); 279 OpenstackPort osPort = rulePopulator.openstackPort(vmPort);
280 if (osPort != null) { 280 if (osPort != null) {
281 - rulePopulator.populateSwitchingRules(device, vmPort); 281 + if (!doNotPushFlows) {
282 + rulePopulator.populateSwitchingRules(device, vmPort);
283 + }
282 registerDhcpInfo(osPort); 284 registerDhcpInfo(osPort);
283 } else { 285 } else {
284 log.warn("No openstackPort information for port {}", vmPort); 286 log.warn("No openstackPort information for port {}", vmPort);
......