hardware_vtep schema's Logical Tables (Logical_Switch, Logical_Router, Logical_Bindin... 23/8223/2
authorMadhu Venugopal <mavenugo@gmail.com>
Sun, 22 Jun 2014 15:20:34 +0000 (08:20 -0700)
committerMadhu Venugopal <mavenugo@gmail.com>
Mon, 23 Jun 2014 17:37:38 +0000 (10:37 -0700)
IT cases will be added once the hardware_vtep emulator setup is in place.

Change-Id: Ibb0defc7c198420ff800abd0f2b3441be1b8e0f0
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalBindingStats.java [new file with mode: 0644]
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalRouter.java [new file with mode: 0644]
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalSwitch.java [new file with mode: 0644]

diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalBindingStats.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalBindingStats.java
new file mode 100644 (file)
index 0000000..180408e
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * 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
+ */
+package org.opendaylight.ovsdb.schema.hardwarevtep;
+
+import org.opendaylight.ovsdb.lib.notation.Column;
+import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
+import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
+
+@TypedTable(name="Logical_Binding_Stats", database="hardware_vtep", fromVersion="1.0.0")
+public interface LogicalBindingStats extends TypedBaseTable {
+
+    @TypedColumn(name="bytes_from_local", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Integer> getBytesFromLocalColumn();
+
+    @TypedColumn(name="bytes_from_local", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setBytesFromLocal(Integer bytesFromLocal);
+
+    @TypedColumn(name="packets_from_local", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Integer> getPacketsFromLocalColumn();
+
+    @TypedColumn(name="packets_from_local", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setPacketsFromLocal(Integer packetsFromLocal);
+
+    @TypedColumn(name="bytes_to_local", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Integer> getBytesToLocalColumn();
+
+    @TypedColumn(name="bytes_to_local", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setBytesToLocal(Integer bytesToLocal);
+
+    @TypedColumn(name="packets_to_local", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Integer> getPacketsToLocalColumn();
+
+    @TypedColumn(name="packets_to_local", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setPacketsToLocal(Integer packetsToLocal);
+}
diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalRouter.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalRouter.java
new file mode 100644 (file)
index 0000000..0e7eabf
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * 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
+ */
+package org.opendaylight.ovsdb.schema.hardwarevtep;
+
+import java.util.Map;
+
+import org.opendaylight.ovsdb.lib.notation.Column;
+import org.opendaylight.ovsdb.lib.notation.UUID;
+import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
+import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
+
+@TypedTable(name="Logical_Router", database="hardware_vtep", fromVersion="1.0.0")
+public interface LogicalRouter extends TypedBaseTable {
+    @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, String> getNameColumn();
+
+    @TypedColumn(name="name", method=MethodType.GETDATA, fromVersion="1.0.0")
+    public String getName();
+
+    @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setName(String name);
+
+
+    @TypedColumn(name="description", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, String> getDescriptionColumn();
+
+    @TypedColumn(name="description", method=MethodType.GETDATA, fromVersion="1.0.0")
+    public String getDescription();
+
+    @TypedColumn(name="description", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setDescription(String description);
+
+
+    @TypedColumn(name="switch_binding", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Map<String, UUID>> getSwitchBindingColumn();
+
+    @TypedColumn(name="switch_binding", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setSwitchBinding(Map<String, UUID> switchBinding);
+
+
+    @TypedColumn(name="static_routes", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Map<String, String>> setStaticRoutesColumn();
+
+    @TypedColumn(name="static_routes", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setStaticRoutes(Map<String, String> staticRoutes);
+}
\ No newline at end of file
diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalSwitch.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/LogicalSwitch.java
new file mode 100644 (file)
index 0000000..8a2ca61
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * 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
+ */
+package org.opendaylight.ovsdb.schema.hardwarevtep;
+
+import java.util.Set;
+
+import org.opendaylight.ovsdb.lib.notation.Column;
+import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
+import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
+import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
+
+@TypedTable(name="Logical_Switch", database="hardware_vtep", fromVersion="1.0.0")
+public interface LogicalSwitch extends TypedBaseTable {
+    @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, String> getNameColumn();
+
+    @TypedColumn(name="name", method=MethodType.GETDATA, fromVersion="1.0.0")
+    public String getName();
+
+    @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setName(String name);
+
+
+    @TypedColumn(name="description", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, String> getDescriptionColumn();
+
+    @TypedColumn(name="description", method=MethodType.GETDATA, fromVersion="1.0.0")
+    public String getDescription();
+
+    @TypedColumn(name="description", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setDescription(String description);
+
+
+    @TypedColumn(name="tunnel_key", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Set<Integer>> getTunnelKeyColumn();
+
+    @TypedColumn(name="tunnel_key", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setTunnelKey(Set<Integer> tunnelKey);
+}
\ No newline at end of file