hardware_vtep Physical Tables (Physical_Switch, Physical_Port, Physical_Locator,... 24/8224/2
authorMadhu Venugopal <mavenugo@gmail.com>
Sun, 22 Jun 2014 15:22:53 +0000 (08:22 -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: I6f2b284d2d63755425023c59d0ad85429d14ec3a
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalLocator.java [new file with mode: 0644]
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalLocatorSet.java [new file with mode: 0644]
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalPort.java [new file with mode: 0644]
schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalSwitch.java [new file with mode: 0644]

diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalLocator.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalLocator.java
new file mode 100644 (file)
index 0000000..32d50c9
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * 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.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="Physical_Locator", database="hardware_vtep", fromVersion="1.0.0")
+public interface PhysicalLocator extends TypedBaseTable {
+    @TypedColumn(name="encapsulation_type", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, String> getEncapsulationTypeColumn();
+
+    @TypedColumn(name="encapsulation_type", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setEncapsulationType(String encapsulationType);
+
+    @TypedColumn(name="dst_ip", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, String> getDstIpColumn();
+
+    @TypedColumn(name="dst_ip", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setDstIp(String dstIp);
+
+    @TypedColumn(name="bfd", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Map<String, String>> getBfdColumn();
+
+    @TypedColumn(name="bfd", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setBfd(Map<String, String> bfd);
+
+    @TypedColumn(name="bfd_status", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Map<String, String>> getBfdStatusColumn();
+
+    @TypedColumn(name="bfd_status", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setBfdStatus(Map<String, String> bfdStatus);
+}
\ No newline at end of file
diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalLocatorSet.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalLocatorSet.java
new file mode 100644 (file)
index 0000000..4335cda
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * 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.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="Physical_Locator_Set", database="hardware_vtep", fromVersion="1.0.0")
+public interface PhysicalLocatorSet extends TypedBaseTable {
+    @TypedColumn(name="locators", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Set<UUID>> getLocatorsColumn();
+
+    @TypedColumn(name="locators", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setLocators(Set<UUID> locators);
+}
\ No newline at end of file
diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalPort.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalPort.java
new file mode 100644 (file)
index 0000000..4d74af3
--- /dev/null
@@ -0,0 +1,64 @@
+/*
+ * 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 java.util.Set;
+
+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="Physical_Port", database="hardware_vtep", fromVersion="1.0.0")
+public interface PhysicalPort 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="vlan_bindings", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Map<Integer, UUID>> getVlanBindingsColumn();
+
+    @TypedColumn(name="vlan_bindings", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setVlanBindings(Map<Integer, UUID> vlanBindings);
+
+
+    @TypedColumn(name="vlan_stats", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Map<Integer, UUID>> getVlanStatsColumn();
+
+    @TypedColumn(name="vlan_stats", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setVlanStats(Map<Integer, UUID> vlanStats);
+
+
+    @TypedColumn(name="port_fault_status", method=MethodType.GETCOLUMN, fromVersion="1.1.0")
+    public Column<GenericTableSchema, Set<String>> getPortFaultStatusColumn();
+
+    @TypedColumn(name="port_fault_status", method=MethodType.SETDATA, fromVersion="1.1.0")
+    public void setPortFaultStatus(Set<String> portFaultStatus);
+}
diff --git a/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalSwitch.java b/schemas/hardware_vtep/src/main/java/org/opendaylight/ovsdb/schema/hardwarevtep/PhysicalSwitch.java
new file mode 100644 (file)
index 0000000..958c93d
--- /dev/null
@@ -0,0 +1,70 @@
+/*
+ * 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.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="Physical_Switch", database="hardware_vtep", fromVersion="1.0.0")
+public interface PhysicalSwitch 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="ports", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Set<UUID>> getPortsColumn();
+
+    @TypedColumn(name="ports", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setPorts(Set<UUID> ports);
+
+
+    @TypedColumn(name="management_ips", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Set<String>> getManagementIpsColumn();
+
+    @TypedColumn(name="management_ips", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setManagementIps(Set<String> managementIps);
+
+
+    @TypedColumn(name="tunnel_ips", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
+    public Column<GenericTableSchema, Set<String>> getTunnelIpsColumn();
+
+    @TypedColumn(name="tunnel_ips", method=MethodType.SETDATA, fromVersion="1.0.0")
+    public void setTunnelIps(Set<String> tunnelIps);
+
+
+    @TypedColumn(name="switch_fault_status", method=MethodType.GETCOLUMN, fromVersion="1.1.0")
+    public Column<GenericTableSchema, Set<String>> getSwitchFaultStatusColumn();
+
+    @TypedColumn(name="switch_fault_status", method=MethodType.SETDATA, fromVersion="1.1.0")
+    public void setSwitchFaultStatus(Set<String> switchFaultStatus);
+}