Add support for openflow node callbacks
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / SouthboundHandler.java
index c7e926775267be5d806c477263f0316cc95c9f45..cc208c62fad5a1e782c378f05649a5c4ec9acce1 100644 (file)
@@ -4,11 +4,10 @@
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Authors : Madhu Venugopal, Brent Salisbury, Sam Hague, Dave Tucker
  */
 package org.opendaylight.ovsdb.openstack.netvirt;
 
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
@@ -27,12 +26,15 @@ import org.opendaylight.ovsdb.utils.mdsal.node.StringConvertor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.List;
-
+/**
+ * @author Madhu Venugopal
+ * @author Brent Salisbury
+ * @author Dave Tucker
+ * @author Sam Hague (shague@redhat.com)
+ */
 public class SouthboundHandler extends AbstractHandler
         implements NodeCacheListener, OvsdbInventoryListener {
     static final Logger logger = LoggerFactory.getLogger(SouthboundHandler.class);
@@ -401,16 +403,14 @@ public class SouthboundHandler extends AbstractHandler
      * @see NodeCacheListener#notifyNode
      */
     @Override
-    public void notifyNode (org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node openFlowNode,
-                            Action action) {
-        logger.info("notifyNode: Node {} update {} from Controller's inventory Service",
-                openFlowNode, action);
+    public void notifyNode (Node openFlowNode, Action action) {
+        logger.info("notifyNode: Node {} update {}", openFlowNode, action);
 
         if (action.equals(Action.ADD)) {
             /* TODO SB_MIGRATION
              * Need to map from ovsdbNode to openflowNode
              */
-            //networkingProviderManager.getProvider(ovsdbNode).initializeOFFlowRules(openFlowNode);
+            networkingProviderManager.getProvider(openFlowNode).initializeOFFlowRules(openFlowNode);
         }
     }