ISSUE: After controller restart, proactive flows are not installed
[controller.git] / opendaylight / switchmanager / src / main / java / org / opendaylight / controller / switchmanager / internal / SwitchManagerImpl.java
index 54508de6d246c379e0b5516cfca1bc93a798aaa6..c4f4b111e3fdc976e93b2b9b01f813d87b2cb09b 100755 (executable)
@@ -582,6 +582,7 @@ public class SwitchManagerImpl implements ISwitchManager,
         }
     }
 
+    @Override
     public void updateSwitchConfig(SwitchConfig cfgObject) {
         boolean modeChange = false;
 
@@ -736,7 +737,7 @@ public class SwitchManagerImpl implements ISwitchManager,
         // copy node properties from config
         boolean proactiveForwarding = false;
         if (nodeConfigList != null) {
-            String nodeId = node.getNodeIDString();
+            String nodeId = node.toString();
             for (SwitchConfig conf : nodeConfigList.values()) {
                 if (conf.getNodeId().equals(nodeId)) {
                     Property description = new Description(conf.getNodeDescription());