Add support for openflow node callbacks
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / impl / MdsalUtils.java
index 9d308578590b809c9d01c70adb6e49448dde59c2..bc25edb5697b49ae722895197d8fe3a0d50adf3b 100644 (file)
@@ -315,4 +315,12 @@ public class MdsalUtils {
         Topology topology = read(LogicalDatastoreType.OPERATIONAL, path);
         return topology;
     }
+
+    public static String getDataPathId(Node node) {
+        return (node.getAugmentation(OvsdbBridgeAugmentation.class).getDatapathId().getValue());
+    }
+
+    public static String getBridgeName(Node node) {
+        return (node.getAugmentation(OvsdbBridgeAugmentation.class).getBridgeName().getValue());
+    }
 }