Add MdsalUtils API stubs 52/19552/1
authorSam Hague <shague@redhat.com>
Mon, 4 May 2015 20:43:01 +0000 (16:43 -0400)
committerSam Hague <shague@redhat.com>
Mon, 4 May 2015 20:43:01 +0000 (16:43 -0400)
Change-Id: I45c91dd577732cdc84161114fd154d4f6fef5871
Signed-off-by: Sam Hague <shague@redhat.com>
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/OvsdbTables.java [new file with mode: 0644]
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/MdsalUtils.java

diff --git a/openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/OvsdbTables.java b/openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/OvsdbTables.java
new file mode 100644 (file)
index 0000000..ac069dd
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2015 Red Hat, Inc. and others.  All rights reserved.
+ *
+ * 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
+ */
+package org.opendaylight.ovsdb.openstack.netvirt.api;
+
+/**
+ * Enum for OVSDB tables
+ *
+ * @author Sam Hague (shague@redhat.com)
+ */
+public enum OvsdbTables {
+    BRIDGE,
+    CONTROLLER,
+    OPENVSWITCH,
+    PORT
+}
index 3fe378ed0b72a3223eee881a04127efe04f847a0..af407572cdde2e6ee25133f1f4d61cb2ed735c13 100644 (file)
@@ -19,6 +19,7 @@ import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
+import org.opendaylight.ovsdb.openstack.netvirt.api.OvsdbTables;
 import org.opendaylight.ovsdb.southbound.SouthboundConstants;
 import org.opendaylight.ovsdb.southbound.SouthboundMapper;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Uri;
@@ -336,4 +337,36 @@ public class MdsalUtils {
     public static String getBridgeName(Node node) {
         return (node.getAugmentation(OvsdbBridgeAugmentation.class).getBridgeName().getValue());
     }
+
+    public static List<Node> getBridges(Node node) {
+        return null;
+    }
+
+    public static List<OvsdbTerminationPointAugmentation> getPorts(Node node) {
+        return null;
+    }
+
+    public static Boolean deletePort(Node node, String portName) {
+        return false;
+    }
+
+    public static Boolean addPort(Node node, String bridgeName, String portName) {
+        return false;
+    }
+
+    public static Boolean addPatchPort(Node node, String bridgeName, String portName, String peerPortName) {
+        return false;
+    }
+
+    public static OvsdbTerminationPointAugmentation getPort(Node node, String portName) {
+        return null;
+    }
+
+    public static String getExternalId(Node node, OvsdbTables table, String key) {
+        return null;
+    }
+
+    public static String getOtherConfig(Node node, OvsdbTables table, String key) {
+        return null;
+    }
 }